org.faceless.graph2
Class ScatterSeries

java.lang.Object
  extended by org.faceless.graph2.Series
      extended by org.faceless.graph2.ScatterSeries

public class ScatterSeries
extends Series

The ScatterSeries allows you to draw a series which is entirely made up of Marker objects and nothing else. Calling the set(double, double) method in this class is identical to adding a Marker with the Series.addMarker() method.


Constructor Summary
ScatterSeries(String name, String type, double size)
          Create a new ScatterSeries
 
Method Summary
 void set(double x, double y)
          Add a new marker at (x,y)
 void setRotate(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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScatterSeries

public ScatterSeries(String name,
                     String type,
                     double size)
Create a new ScatterSeries

Parameters:
name - the name of the series
type - The type of Marker to add when setting a point. This value will be passed in to the Marker constructor as the type parameter.
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 marker
y - the Y co-ordinate to place the marker


Copyright © 2001-2011 Big Faceless Organization