Class LinesPlot

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class LinesPlot extends TablePlot
Component which paints a stack of line plots.
Since:
3 Mar 2006
Author:
Mark Taylor
See Also:
  • Constructor Details

    • LinesPlot

      public LinesPlot()
      Constructor.
  • Method Details

    • setState

      public void setState(PlotState state)
      Description copied from class: TablePlot
      Sets the plot state for this plot. This characterises how the plot will be done next time this component is painted.
      Overrides:
      setState in class TablePlot
      Parameters:
      state - plot state
    • getSurfaces

      public PlotSurface[] getSurfaces()
    • calculateBounds

      public DataBounds calculateBounds(PlotData data, PlotState state, double[] xLimits)
      Calculates data ranges along the X and Y axes for a given point selection and data object. The result has 1 + nplot ranges.
      Parameters:
      data - plot data
      state - plot state
      xLimits - (lower,upper) bounds array giving region for range determination; may be null for the whole X region
    • getPointsInRange

      public BitSet getPointsInRange()
      Returns a bit vector indicating which points are in the X range currently visible within this plot.
      Returns:
      bit vector with true marking point indices in visible X range
    • getPlottedPointIterator

      public PointIterator getPlottedPointIterator()
      Returns an iterator over the points which are visible in this plot.
      Returns:
      point iterator
    • getPointPlacers

      public PointPlacer[] getPointPlacers()
      Returns an array of point placers, one for each constituent graph in this plot.
      Returns:
      point placer array
    • getPlotBounds

      public Rectangle getPlotBounds()
      Returns the rectangle which is the union of all the graph regions, that is the region between the axes, for the last time a plot was drawn.
      Specified by:
      getPlotBounds in class TablePlot
      Returns:
      plot region rectangle
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent