org.gwoptics.graphics.graph2D.traces
Class ScatterTrace

java.lang.Object
  extended by org.gwoptics.graphics.graph2D.traces.Blank2DTrace
      extended by org.gwoptics.graphics.graph2D.traces.ScatterTrace
All Implemented Interfaces:
IGraph2DTrace, IRenderable

public class ScatterTrace
extends Blank2DTrace

Author:
Daniel

Nested Class Summary
static interface ScatterTrace.IScatterPoint
           
static class ScatterTrace.LABELPOSITION
           
 
Nested classes/interfaces inherited from class org.gwoptics.graphics.graph2D.traces.Blank2DTrace
Blank2DTrace.PlotRenderer
 
Field Summary
static ScatterTrace.IScatterPoint Circle
           
static ScatterTrace.IScatterPoint Cross
           
static ScatterTrace.IScatterPoint Ring
           
 
Constructor Summary
ScatterTrace(ScatterTrace.IScatterPoint pt)
           
 
Method Summary
 void addPoint(float x, float y, float size, GWColour c, java.lang.Object... args)
           
 void addPoint(float x, float y, float size, java.lang.String label, GWColour c, java.lang.Object... args)
           
 void addPoint(float x, float y, java.lang.Object... args)
           
 void onAddTrace(java.lang.Object[] traces)
           Before the trace is added to the graph control this method is called.
 void setDefaultColor(GWColour c)
           
 void setDefaultLabelColor(GWColour c)
           
 void setDefaultSize(float s)
           
 void setLabelFont(processing.core.PFont font)
           
 void setLablePosition(ScatterTrace.LABELPOSITION p)
           
 void TraceDraw(Blank2DTrace.PlotRenderer p)
           
 
Methods inherited from class org.gwoptics.graphics.graph2D.traces.Blank2DTrace
draw, generate, onRemoveTrace, setGraph, setParent, setPosition, setRenderer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Cross

public static final ScatterTrace.IScatterPoint Cross

Circle

public static final ScatterTrace.IScatterPoint Circle

Ring

public static final ScatterTrace.IScatterPoint Ring
Constructor Detail

ScatterTrace

public ScatterTrace(ScatterTrace.IScatterPoint pt)
Method Detail

onAddTrace

public void onAddTrace(java.lang.Object[] traces)
Description copied from interface: 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.

Specified by:
onAddTrace in interface IGraph2DTrace
Overrides:
onAddTrace in class Blank2DTrace

setLablePosition

public void setLablePosition(ScatterTrace.LABELPOSITION p)

setLabelFont

public void setLabelFont(processing.core.PFont font)

setDefaultLabelColor

public void setDefaultLabelColor(GWColour c)

setDefaultColor

public void setDefaultColor(GWColour c)

setDefaultSize

public void setDefaultSize(float s)

addPoint

public void addPoint(float x,
                     float y,
                     float size,
                     GWColour c,
                     java.lang.Object... args)

addPoint

public void addPoint(float x,
                     float y,
                     java.lang.Object... args)

addPoint

public void addPoint(float x,
                     float y,
                     float size,
                     java.lang.String label,
                     GWColour c,
                     java.lang.Object... args)

TraceDraw

public void TraceDraw(Blank2DTrace.PlotRenderer p)
Specified by:
TraceDraw in class Blank2DTrace


processing library gwoptics by Daniel Brown and Andreas Freise. (c) 2009 onwards