Class DefaultColorBarEditor

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

class DefaultColorBarEditor extends DefaultNumberAxisEditor
A DefaultColorBarEditor. Extends DefaultNumberAxisEditor to allow change general axis type parameters.
  • Field Details

    • invertPaletteCheckBox

      private JCheckBox invertPaletteCheckBox
      A checkbox that indicates whether or not the color indices should run high to low.
    • invertPalette

      private boolean invertPalette
      Flag set by invertPaletteCheckBox.
    • stepPaletteCheckBox

      private JCheckBox stepPaletteCheckBox
      A checkbox that indicates whether the palette is stepped.
    • stepPalette

      private boolean stepPalette
      Flag set by stepPaletteCheckBox.
    • currentPalette

      private PaletteSample currentPalette
      The Palette Sample displaying the current Palette.
    • availablePaletteSamples

      private PaletteSample[] availablePaletteSamples
      An array of availiable sample palettes.
    • localizationResources

      protected static ResourceBundle localizationResources
      The resourceBundle for the localization.
  • Constructor Details

    • DefaultColorBarEditor

      public DefaultColorBarEditor(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
      Overrides:
      actionPerformed in class DefaultNumberAxisEditor
      Parameters:
      event - the event.
    • attemptPaletteSelection

      private void attemptPaletteSelection()
      Handle a palette selection.
    • 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 DefaultColorBarEditor 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 null</code< if axis is null.