org.omegahat.Graphics.Plots
Class DynamicTimeSeriesStack

java.lang.Object
  |
  +--org.omegahat.Graphics.Primitives.GraphicalObject
        |
        +--org.omegahat.Graphics.Primitives.RGO
              |
              +--org.omegahat.Graphics.Primitives.GraphicalContainer
                    |
                    +--org.omegahat.Graphics.Plots.DynamicTimeSeriesStack
All Implemented Interfaces:
Addable, Copyable, GraphicalComponentInt, GraphicalContainerInt, MathOperable, ScaledComponentInt, SimpleGraphicalContainerInt, Subsettable, Tree
Direct Known Subclasses:
PlotListener

public class DynamicTimeSeriesStack
extends GraphicalContainer


Field Summary
protected  int numSeries
           
 
Fields inherited from class org.omegahat.Graphics.Primitives.GraphicalContainer
allocator, children, origin, parent, scaleX, scaleY
 
Fields inherited from class org.omegahat.Graphics.Primitives.RGO
region
 
Fields inherited from class org.omegahat.Graphics.Primitives.GraphicalObject
ACTIVE, fontSize, lastDevice, lastHeightCM, lastRegion, lastWidthCM, parents, status, VISIBLE
 
Fields inherited from interface org.omegahat.Environment.DataStructures.MathOperable
DIVIDE, MINUS, MULTIPLY, PLUS
 
Constructor Summary
DynamicTimeSeriesStack()
           
DynamicTimeSeriesStack(int numSeries)
          Construct a stack for the given number of series.
 
Method Summary
 void addValue(int which, double value, boolean update)
           
 void addValues(double[] values, boolean update)
           
 void editXScale(double min, double max)
           
 void editYScale(int which, double min, double max)
           
 int getNumSeries()
           
 DynamicTimeSeries getTimeSeries(int which)
           
 void make(int numSeries)
          Construct the object for the given number of series and the given scale steps.
 
Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalContainer
add, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addValue, copy, copy, draw, drawChildren, get, getChild, getChildCount, getChildren, getDevice, getOrigin, getRegionAllocator, getXScale, getYScale, parent, parent, remove, removeGraphicalObject, removeGraphicalObject, setOrigin, setRegionAllocator, setXScale, setYScale, subset, subset, transform, transform
 
Methods inherited from class org.omegahat.Graphics.Primitives.RGO
center, centre, createRegionDescription, createRegionDescription, getRegion, height, height, setHJust, setRegion, setVJust, width, width, x, x, y, y
 
Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalObject
cacheSize, getFontSize, getFontSize, getParameters, getParents, getStatus, isActive, isVisible, lastHeightCM, lastRegion, lastWidthCM, parents, setActive, setParameters, setParents, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omegahat.Graphics.Primitives.GraphicalComponentInt
getParameters, getRegion, isActive, isVisible, parents, setActive, setParameters, setRegion, setVisible
 

Field Detail

numSeries

protected int numSeries
Constructor Detail

DynamicTimeSeriesStack

public DynamicTimeSeriesStack()

DynamicTimeSeriesStack

public DynamicTimeSeriesStack(int numSeries)
Construct a stack for the given number of series.
Method Detail

getNumSeries

public int getNumSeries()

make

public void make(int numSeries)
Construct the object for the given number of series and the given scale steps.

getTimeSeries

public DynamicTimeSeries getTimeSeries(int which)

editXScale

public void editXScale(double min,
                       double max)

editYScale

public void editYScale(int which,
                       double min,
                       double max)

addValue

public void addValue(int which,
                     double value,
                     boolean update)

addValues

public void addValues(double[] values,
                      boolean update)