Class PlotWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, TopcatListener

public class PlotWindow extends GraphicsWindow implements TopcatListener
Window which displays a scatter plot of two columns from a table.
Since:
21 Jun 2004
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • PlotWindow

      public PlotWindow(Component parent)
      Constructs a new PlotWindow.
      Parameters:
      parent - parent component (may be used for positioning)
  • Method Details

    • getPlotPanel

      protected JComponent getPlotPanel()
      Description copied from class: GraphicsWindow
      Returns the component containing the graphics output of this window. This is the component which is exported or printed etc alongside the legend which is managed by GraphicsWindow. It should therefore contain only the output data, not any user interface decoration.
      Specified by:
      getPlotPanel in class GraphicsWindow
      Returns:
      plot container
    • doReplot

      protected void doReplot(uk.ac.starlink.ttools.plot.PlotState state)
      Description copied from class: GraphicsWindow
      Performs an actual plot.
      Overrides:
      doReplot in class GraphicsWindow
      Parameters:
      state - plot state determining details of plot configuration
    • createStyleEditor

      protected StyleEditor createStyleEditor()
      Description copied from class: GraphicsWindow
      Creates a style editor suitable for this window.
      Specified by:
      createStyleEditor in class GraphicsWindow
      Returns:
      new style editor
    • modelChanged

      public void modelChanged(TopcatEvent evt)
      Description copied from interface: TopcatListener
      Invoked when the model has changed in some way.
      Specified by:
      modelChanged in interface TopcatListener
      Parameters:
      evt - event description
    • getDefaultStyles

      public uk.ac.starlink.ttools.plot.StyleSet getDefaultStyles(int npoint)
      Description copied from class: GraphicsWindow
      Returns a StyleSet which can supply markers. The npoint may be used as a hint for how many points are expected to be drawn with it.
      Specified by:
      getDefaultStyles in class GraphicsWindow
      Parameters:
      npoint - approximate number of points - use -1 for unknown
      Returns:
      style factory