|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwoptics.graphics.graph2D.traces.Blank2DTrace
public abstract class Blank2DTrace
Constructor Summary | |
---|---|
Blank2DTrace()
|
Method Summary | |
---|---|
void |
draw()
|
void |
generate()
This is called everytime the equation callback object is changed. |
void |
onAddTrace(java.lang.Object[] traces)
Before the trace is added to the graph control this method is called. |
void |
onRemoveTrace()
Before the trace is officially removed from the trace list of a Graph2D object, the onRemove method is called. |
void |
setGraph(IGraph2D grp)
Sets an internal variable to store a reference to the graph object the trace is being plotted on |
void |
setParent(processing.core.PApplet parent)
|
void |
setPosition(int x,
int y)
alters the initial position of the trace on the graph |
abstract void |
TraceDraw(processing.core.PGraphics backBuffer)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Blank2DTrace()
Method Detail |
---|
public void generate()
IGraph2DTrace
generate
in interface IGraph2DTrace
public void onAddTrace(java.lang.Object[] traces)
IGraph2DTrace
Before the trace is added to the graph control this method is called. It allows a trace to check the settings of other traces that have previously been added for in Compatibilities. Leave method empty in implementation if no checks are necessary.
w onAddTrace is called from with a synchronised lock so the traces object won't be modified whilst reading it. Therefore it is not necessary to provide custom thread locks.
onAddTrace
in interface IGraph2DTrace
public void onRemoveTrace()
IGraph2DTrace
Before 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 IGraph2DTrace
public void setPosition(int x, int y)
IGraph2DTrace
setPosition
in interface IGraph2DTrace
public void setParent(processing.core.PApplet parent)
setParent
in interface IRenderable
public void setGraph(IGraph2D grp)
IGraph2DTrace
setGraph
in interface IGraph2DTrace
public void draw()
draw
in interface IRenderable
public abstract void TraceDraw(processing.core.PGraphics backBuffer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |