|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simBio.sim.analyzer.graph.GraphReplotBuffer
public class GraphReplotBuffer
High speed graph redrawing buffer In order to redraw a time series graph at high speed, without plotting multiple calculation results in 1 pixel of the X axis (= time axis) direction, by storing the maximum/minimum values in advance, with 1 pixel unit of the X axis (= time axis) direction, high speed line drawing can be carried out at drawing time.
Constructor Summary | |
---|---|
GraphReplotBuffer(Graph grp,
IPlot plot,
TimeSeriesValues val,
int series)
|
Method Summary | |
---|---|
double |
getDataMax(int x)
Returns the maximum value in the calculation results of the specified index, from the redrawing buffer. |
double |
getDataMin(int x)
Returns the minimum value in the calculation results of the specified index, from the redrawing buffer. |
int |
getRangeMax()
Returns the maximum index of the redrawing buffer. |
int |
getRangeMin()
Returns the minimum index of the redrawing buffer. |
int |
getSize()
Returns the width (number of pixels displayed in the time axis) of the redrawing buffer |
void |
rebuild()
Rebuilds the redrawing buffer. From a TimeSeriesValues object, get the calculation results of the time to be displayed in Graph.AxisX, and rebuild the internal redrawing buffer. |
void |
setData(double time,
int series,
double value)
Registers calculation results in the redrawing buffer. Called in the analyze() method of Graph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphReplotBuffer(Graph grp, IPlot plot, TimeSeriesValues val, int series)
grp
- Graph-related object plot
- Plot-related object val
- TimeSeriesValues-related object
series
- graph series number Method Detail |
---|
public void rebuild()
public void setData(double time, int series, double value)
time
- time series
- series number (ignored) value
- calculation value public int getRangeMin()
public int getRangeMax()
public double getDataMax(int x)
x
- index
public double getDataMin(int x)
x
- index
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |