Package org.faceless.graph2
Class ScatterSeries
- java.lang.Object
-
- org.faceless.graph2.Series
-
- org.faceless.graph2.ScatterSeries
-
public class ScatterSeries extends Series
The ScatterSeries allows you to draw a series which is entirely made up ofMarkerobjects and nothing else. Calling theset(double, double)method in this class is identical to adding a Marker with theSeries.addMarker()method.
-
-
Constructor Summary
Constructors Constructor Description ScatterSeries(String name, String type, double size)Create a new ScatterSeries
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidset(double x, double y)Add a new marker at (x,y)voidsetRotate(double rotate)Set the optional rotation for the markers in the series, in degrees clockwise.-
Methods inherited from class org.faceless.graph2.Series
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setStyle, toString
-
-
-
-
Constructor Detail
-
ScatterSeries
public ScatterSeries(String name, String type, double size)
Create a new ScatterSeries- Parameters:
name- the name of the seriestype- The type of Marker to add when setting a point. This value will be passed in to theMarkerconstructor as thetypeparameter.size- the size of the marker, in pixels, points or whatever the native unit of your Output is
-
-
Method Detail
-
setRotate
public void setRotate(double rotate)
Set the optional rotation for the markers in the series, in degrees clockwise. The default value is zero- Parameters:
rotate- how far to rotate the markers, in degrees clockwise
-
set
public void set(double x, double y)Add a new marker at (x,y)- Parameters:
x- the X co-ordinate to place the markery- the Y co-ordinate to place the marker
-
-