Class MarkStyleEditor

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

public class MarkStyleEditor extends StyleEditor
StyleEditor implementation for editing MarkStyle objects.
Since:
10 Jan 2005
Author:
Mark Taylor
See Also:
  • Constructor Details

    • MarkStyleEditor

      public MarkStyleEditor(boolean withLines, boolean withTransparency, uk.ac.starlink.ttools.plot.ErrorRenderer[] errorRenderers, uk.ac.starlink.ttools.plot.ErrorRenderer defaultRenderer, ErrorModeSelectionModel[] errorModeModels)
      Constructs a style editor with optional error style selection.
      Parameters:
      withLines - whether to show a panel for selecting line styles
      withTransparency - whether to show a control for selecting marker opacity
      errorRenderers - array of error renderers to choose from
      defaultRenderer - default error renderer to use if no other is known
      errorModeModels - array of error mode selectors, one per dimension of the error bars
  • 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
    • setStats

      public void setStats(SetId[] setIds, uk.ac.starlink.ttools.plot.XYStats[] stats)
      Sets the known statistical information about a list of plottable sets. This represents information about calculated linear regression coefficients.
      Parameters:
      setIds - set identifiers for the statistics objects provided
      stats - statistics objects themselves, one per element of setIds
    • refreshState

      protected void refreshState()
      Description copied from class: StyleEditor
      Ensures that all the visual components of this editor match its internal state.
      Overrides:
      refreshState in class StyleEditor
    • getLegendIcon

      public Icon getLegendIcon()
      Description copied from class: StyleEditor
      Returns the icon to be used for the display legend of this editor.
      Overrides:
      getLegendIcon in class StyleEditor
      Returns:
      legend icon