Class DensityStyleEditor

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

public class DensityStyleEditor extends StyleEditor
StyleEditor for density plots.
Since:
13 Jan 2006
Author:
Mark Taylor
See Also:
  • Constructor Details

    • DensityStyleEditor

      public DensityStyleEditor(uk.ac.starlink.ttools.plot.DensityStyle[] styles, ToggleButtonModel rgbModel)
      Constructor. The style editor can only choose elements of the supplied styles array.
      Parameters:
      styles - available styles
      rgbModel - toggler selected for RGB mode and unselected for indexed mode
  • Method Details

    • setStyle

      public void setStyle(uk.ac.starlink.ttools.plot.Style style)
      Description copied from class: StyleEditor
      Sets the style. Implementations should configure their visual state so that it matches the characteristics of the given style.
      Specified by:
      setStyle in class StyleEditor
      Parameters:
      style - current style
    • getStyle

      public uk.ac.starlink.ttools.plot.Style getStyle()
      Description copied from class: StyleEditor
      Returns a style object derived from the current state of this component.
      Specified by:
      getStyle in class StyleEditor
      Returns:
      current (edited) style
    • getHelpID

      public String getHelpID()
      Description copied from class: StyleEditor
      Returns the help ID associated with this editor.
      Specified by:
      getHelpID in class StyleEditor
      Returns:
      ID within TOPCAT HelpSet