Class SphereWindow

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

public class SphereWindow extends Plot3DWindow
Graphics window for viewing 3D scatter plots using spherical polar coordinates.
Since:
23 Dec 2005
Author:
Mark Taylor
See Also:
  • Constructor Details

    • SphereWindow

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

    • getMainRangeCount

      public int getMainRangeCount()
      Description copied from class: GraphicsWindow
      Returns the number of axes whose ranges can be reset excluding any auxiliary axes.
      Overrides:
      getMainRangeCount in class GraphicsWindow
    • createPlotState

      protected uk.ac.starlink.ttools.plot.PlotState createPlotState()
      Description copied from class: GraphicsWindow
      Constructs a new PlotState. This is called by GraphicsWindow.getPlotState() prior to the PlotState configuration done there. Thus if a subclass wants to provide and configure a particular state (for instance one of a specialised subclass of PlotState) it can override this method to do so. The default implementation just invokes new PlotState().
      Overrides:
      createPlotState in class Plot3DWindow
      Returns:
      returns a new PlotState object ready for generic configuration
    • getPlotState

      public uk.ac.starlink.ttools.plot.PlotState getPlotState()
      Description copied from class: GraphicsWindow
      Returns an object which characterises the choices the user has made in the GUI to indicate the plot that s/he wants to see.

      The GraphicsWindow implementation of this method as well as populating the state with standard information also calls PointSelection.readPoints(javax.swing.BoundedRangeModel) and GraphicsWindow.calculateRanges(uk.ac.starlink.topcat.plot.PointSelection, uk.ac.starlink.topcat.plot.Points, uk.ac.starlink.ttools.plot.PlotState) if necessary.

      Overrides:
      getPlotState in class Plot3DWindow
      Returns:
      snapshot of the currently-selected plot request
    • createPointSelector

      protected PointSelector createPointSelector()
      Description copied from class: GraphicsWindow
      Returns a new PointSelector instance to be used for selecting points to be plotted.
      Overrides:
      createPointSelector in class GraphicsWindow
      Returns:
      new point selector component
    • 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
    • getErrorModeModels

      public ErrorModeSelectionModel[] getErrorModeModels()
      Description copied from class: GraphicsWindow
      Returns the models for selecting error modes.
      Overrides:
      getErrorModeModels in class GraphicsWindow
      Returns:
      error mode models
    • createTangentErrorIcon

      public static Icon createTangentErrorIcon()
      Returns an icon for the button which toggles whether tangential errors will be drawn.
      Returns:
      error icon