Class 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 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