Class TitlePropertyEditPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class TitlePropertyEditPanel
extends JPanel
implements ActionListener
A panel for editing the properties of a chart title.
See Also:
Serialized Form
  • Constructor Details

    • TitlePropertyEditPanel

      public TitlePropertyEditPanel​(Title title)
      Standard constructor: builds a panel for displaying/editing the properties of the specified title.
      Parameters:
      title - the title, which should be changed. This parameter is not used yet.
  • Method Details

    • getTitle

      public String getTitle()
      Returns the title entered in the panel.
      Returns:
      the title entered in the panel.
    • getTitleFont

      public Font getTitleFont()
      Returns the font selected in the panel.
      Returns:
      the font selected in the panel.
    • getTitlePaint

      public Paint getTitlePaint()
      Returns the paint selected in the panel.
      Returns:
      the paint selected in the panel.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles button clicks by passing control to an appropriate handler method.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event
    • attemptFontSelection

      public void attemptFontSelection()
      Presents a font selection dialog to the user.
    • attemptPaintSelection

      public void attemptPaintSelection()
      Allow the user the opportunity to select a Paint object. For now, we just use the standard color chooser - all colors are Paint objects, but not all Paint objects are colors (later we can implement a more general Paint chooser).
    • setTitleProperties

      public void setTitleProperties​(Title title)
      Sets the properties of the specified title to match the properties defined on this panel. This method does nothing.
      Parameters:
      title - an Title.