Class ColorBarPropertyEditPanel

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

public class ColorBarPropertyEditPanel
extends AxisPropertyEditPanel
A ColorBarPropertyEditPanel. Extends NumberAxisPropertyEditPanel to allow change general axis type parameters.
Author:
David M. O'Donnell
See Also:
Serialized Form
  • Constructor Details

    • ColorBarPropertyEditPanel

      public ColorBarPropertyEditPanel​(ColorBar colorBar)
      Creates a new edit panel for a color bar.
      Parameters:
      colorBar - the color bar.
  • Method Details

    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles actions from within the property panel.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event.
    • setAxisProperties

      public void setAxisProperties​(ColorBar colorBar)
      Sets the properties of the specified axis to match the properties defined on this panel.
      Parameters:
      colorBar - the color bar.
    • getInstance

      public static ColorBarPropertyEditPanel getInstance​(ColorBar colorBar)
      A static method that returns a panel that is appropriate for the axis type.
      Parameters:
      colorBar - the color bar.
      Returns:
      a panel or nullnull.
    • isAutoRange

      public boolean isAutoRange()
      Returns the current setting of the auto-range property.
      Returns:
      true if auto range is enabled.
    • getMinimumValue

      public double getMinimumValue()
      Returns the current setting of the minimum value in the axis range.
      Returns:
      the current setting of the minimum value in the axis range.
    • getMaximumValue

      public double getMaximumValue()
      Returns the current setting of the maximum value in the axis range.
      Returns:
      the current setting of the maximum value in the axis range.
    • focusGained

      public void focusGained​(FocusEvent event)
      Does nothing.
      Specified by:
      focusGained in interface FocusListener
      Parameters:
      event - the event.
    • focusLost

      public void focusLost​(FocusEvent event)
      Revalidates minimum/maximum range.
      Specified by:
      focusLost in interface FocusListener
      Parameters:
      event - the event.
    • toggleAutoRange

      public void toggleAutoRange()
      Toggle the auto range setting.
    • validateMinimum

      public void validateMinimum()
      Revalidate the range minimum.
    • validateMaximum

      public void validateMaximum()
      Revalidate the range maximum.
    • setAxisProperties

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