Class AxisPropertyEditPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
ColorBarPropertyEditPanel

public class AxisPropertyEditPanel
extends JPanel
implements ActionListener
A panel for editing the properties of an axis.
See Also:
Serialized Form
  • Constructor Details

    • AxisPropertyEditPanel

      public AxisPropertyEditPanel​(Axis axis)
      Standard constructor: builds a panel for displaying/editing the properties of the specified axis.
      Parameters:
      axis - the axis whose properties are to be displayed/edited in the panel.
  • Method Details

    • getInstance

      public static AxisPropertyEditPanel getInstance​(Axis axis)
      A static method that returns a panel that is appropriate for the axis type.
      Parameters:
      axis - the axis whose properties are to be displayed/edited in the panel.
      Returns:
      a panel or nullnull.
    • getLabel

      public String getLabel()
      Returns the current axis label.
      Returns:
      the current axis label.
    • getLabelFont

      public Font getLabelFont()
      Returns the current label font.
      Returns:
      the current label font.
    • getLabelPaint

      public Paint getLabelPaint()
      Returns the current label paint.
      Returns:
      the current label paint.
    • isTickLabelsVisible

      public boolean isTickLabelsVisible()
      Returns a flag that indicates whether or not the tick labels are visible.
      Returns:
      true if ick mark labels are visible.
    • getTickLabelFont

      public Font getTickLabelFont()
      Returns the font used to draw the tick labels (if they are showing).
      Returns:
      the font used to draw the tick labels.
    • getTickLabelPaint

      public Paint getTickLabelPaint()
      Returns the current tick label paint.
      Returns:
      the current tick label paint.
    • isTickMarksVisible

      public boolean isTickMarksVisible()
      Returns the current value of the flag that determines whether or not tick marks are visible.
      Returns:
      true if tick marks are visible.
    • getTickLabelInsets

      public Insets getTickLabelInsets()
      Returns the current tick label insets value
      Returns:
      the current tick label insets value.
    • getLabelInsets

      public Insets getLabelInsets()
      Returns the current label insets value
      Returns:
      the current label insets value.
    • getOtherTabs

      public JTabbedPane getOtherTabs()
      Returns a reference to the tabbed pane.
      Returns:
      a reference to the tabbed pane.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles user interaction with the property panel.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - Information about the event that triggered the call to this method.
    • attemptTickLabelFontSelection

      public void attemptTickLabelFontSelection()
      Presents a tick label font selection dialog to the user.
    • setAxisProperties

      public void setAxisProperties​(Axis axis)
      Sets the properties of the specified axis to match the properties defined on this panel.
      Parameters:
      axis - the axis.