|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gwoptics.graphics.graph2D.traces.Line2DTrace
org.gwoptics.graphics.graph2D.traces.UpdatingLine2DTrace
public class UpdatingLine2DTrace
| Constructor Summary | |
|---|---|
UpdatingLine2DTrace(ILine2DEquation eq,
long msRefreshRate,
float xTickIncr)
|
|
| Method Summary | |
|---|---|
void |
draw()
Uses the data that generate produced beforehand to plot the final trace line. |
void |
generate()
Uses the ILineEquation object provided to fill the internal arrays. |
long |
getRefreshRate()
|
void |
onAddTrace(java.lang.Object[] traces)
Here we override the onAddTrace method to see if any Rolling2DTraces have been previously added. |
void |
onRemoveTrace()
Before the trace is officially removed from the trace list of a Graph2D object, the onRemove method is called. |
void |
pre()
|
void |
setParent(processing.core.PApplet parent)
Sets the parent PApplet object |
| Methods inherited from class org.gwoptics.graphics.graph2D.traces.Line2DTrace |
|---|
removeEffect, setEquationCallback, setGraph, setLineWidth, setPosition, setTraceColour, setTraceEffect |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdatingLine2DTrace(ILine2DEquation eq,
long msRefreshRate,
float xTickIncr)
| Method Detail |
|---|
public long getRefreshRate()
public void setParent(processing.core.PApplet parent)
Line2DTrace
setParent in interface IRenderablesetParent in class Line2DTracepublic void onAddTrace(java.lang.Object[] traces)
onAddTrace in interface IGraph2DTraceonAddTrace in class Line2DTracepublic void onRemoveTrace()
IGraph2DTraceBefore the trace is officially removed from the trace list of a Graph2D object, the onRemove method is called. This allows the trace object to provide any cleanup needed, if at all needed. Leave blank if nothing is needed.
onRemoveTrace in interface IGraph2DTraceonRemoveTrace in class Line2DTracepublic void generate()
Line2DTrace
generate in interface IGraph2DTracegenerate in class Line2DTracepublic void pre()
public void draw()
Line2DTrace
draw in interface IRenderabledraw in class Line2DTrace
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||