Class PointSelectorSet

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public abstract class PointSelectorSet extends JPanel
Component which keeps track of a number of PointSelector objects. It currently uses a JTabbedPane to present them.

It also keeps track of whether the selected axes are reversed (flipped) and whether they use linear or logarithmic scales. This is not logically the job of this component, but the checkboxes really have to go in the same bit of screen space, so for practical reasons they are here.

Since:
1 Nov 2005
Author:
Mark Taylor
See Also:
  • Field Details

  • Constructor Details

    • PointSelectorSet

      public PointSelectorSet()
      Constructs a new set.
  • Method Details

    • getSelectorCount

      public int getSelectorCount()
      Returns the number of selectors in this set.
      Returns:
      selector count
    • getSelector

      public PointSelector getSelector(int index)
      Returns the selector at a given index.
      Parameters:
      index - index of the selector to return
      Returns:
      selector
    • getAddSelectorAction

      public Action getAddSelectorAction()
      Returns an action which adds a new selector to this set.
      Returns:
      add action
    • getRemoveSelectorAction

      public Action getRemoveSelectorAction()
      Returns an action which removes a selector from this set.
      Returns:
      remove action
    • createSelector

      protected abstract PointSelector createSelector()
      Factory method to construct new PointSelector objects to go in this PointSelectorSet.
      Returns:
      new point selector component
    • createStyleEditor

      protected abstract StyleEditor createStyleEditor()
      Factory method to construct a StyleEditor component for configuring how different styles appear in the plot.
      Returns:
      new style editor component
    • getStyleWindow

      public StyleWindow getStyleWindow()
    • getPointSelection

      public PointSelection getPointSelection()
      Returns the data specification reflecting the current state of this component. This contains all the information about what points are to be plotted.
      Returns:
      point selection object
    • getMainSelector

      public PointSelector getMainSelector()
      Returns the 'main' PointSelector contained in this set.
      Returns:
      main selector, or null if there isn't one yet
    • addNewSelector

      public void addNewSelector(PointSelector psel)
      Adds a new selector to this set.
      Parameters:
      psel - new selector
    • removeCurrentSelector

      public void removeCurrentSelector()
      Removes the currently selected selector from this set.
    • addActionListener

      public void addActionListener(ActionListener listener)
      Adds an action listener. Such listeners will be notified any time PointSelectors are added to or removed from this set, and any time the state of any selector currently a member of this set changes.
      Parameters:
      listener - listener to add
    • removeActionListener

      public void removeActionListener(ActionListener listener)
      Removes an action listener.
      Parameters:
      listener - listener to remove
      See Also:
    • addTopcatListener

      public void addTopcatListener(TopcatListener listener)
      Adds a TopcatListener which will be notified when changes occur to any TopcatModel associated with this component.
      Parameters:
      listener - listener to add
    • removeTopcatListener

      public void removeTopcatListener(TopcatListener listener)
      Removes a TopcatListener which was previously added.
      Parameters:
      listener - listener to remove
      See Also: