|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TimeSeriesGraph
A TimeSeriesGraph
graphs a series of points assumed to be in
time order. It provides a DataSink
interface so that it can be easily
attached to data generators.
Field Summary | |
protected int |
yMax
|
protected int |
yMaxDefault
|
protected int |
ySize
|
Constructor Summary | |
TimeSeriesGraph()
Place the time series on its own InfiniteCanvas . |
|
TimeSeriesGraph(InfiniteCanvas c)
Places the time series on a predefined canvas. |
Method Summary | |
void |
addPoint(PointValue p)
Adds a new point to the time series. |
InfiniteCanvas |
getCanvas()
|
java.awt.Color |
getColor()
Determines the line/point color used by time series. |
protected int |
scale(PointValue p)
MADE PROTECTED |
void |
setLined(boolean l)
Specifies whether points should be connected. |
void |
setMax(int max)
Specifies maximum y value for this time series for scaling purposes. |
java.lang.String |
toString()
Creates a fancy printable name for this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int ySize
protected int yMaxDefault
protected int yMax
Constructor Detail |
public TimeSeriesGraph()
InfiniteCanvas
.
InfiniteCanvas
public TimeSeriesGraph(InfiniteCanvas c)
c
- the canvas this time series should be placed on.Method Detail |
public InfiniteCanvas getCanvas()
public void setLined(boolean l)
l
- true
connect the dots. false
use dotspublic void setMax(int max)
setMax
in interface DataSink
max
- maximum y valueprotected int scale(PointValue p)
public void addPoint(PointValue p)
addPoint
in interface DataSink
p
- the new point.public java.awt.Color getColor()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |