com.jinsight.jetchart
Class XYSerie
java.lang.Object
|
+--com.jinsight.jetchart.AbstractSerie
|
+--com.jinsight.jetchart.ScatterSerie
|
+--com.jinsight.jetchart.XYSerie
- public class XYSerie
- extends ScatterSerie
This class implements the properties and methods of XY series.
An XY series is displayed as a sequence of points whose xy coordinates
are calculated with respect to a horizontal and a vertical scales,
respectively.
An XY series data point can be depicted as a square, a circle, a triangle,
a cross or a dot.
- See Also:
ScatterSerie
Field Summary |
static int |
CIRCLE
Constant used to define the point shape to a circle. |
static int |
CROSS
Constant used to define the point shape to a cross. |
static int |
DOT
Constant used to define the point shape to a dot. |
static int |
SQUARE
Constant used to define the point shape to a square. |
static int |
TRIANGLE
Constant used to define the point shape to a triangle. |
Constructor Summary |
XYSerie()
Creates an XYSerie object. |
XYSerie(double[][] multipleValues)
Creates an XYSerie object. |
XYSerie(double[][] multipleValues,
java.lang.String title)
Creates an XYSerie object. |
Method Summary |
void |
setHeight(int height)
Sets the height of a point shape. |
void |
setShape(int shape)
Sets data point shape. |
void |
setWidth(int width)
Sets the width of a point shape. |
Methods inherited from class com.jinsight.jetchart.AbstractSerie |
getId, getMultipleValues, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipContent, setToolTipEnabled, setValueFormat, setValues, setValues, setValuesQuery |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQUARE
public static final int SQUARE
- Constant used to define the point shape to a square.
CIRCLE
public static final int CIRCLE
- Constant used to define the point shape to a circle.
TRIANGLE
public static final int TRIANGLE
- Constant used to define the point shape to a triangle.
CROSS
public static final int CROSS
- Constant used to define the point shape to a cross.
DOT
public static final int DOT
- Constant used to define the point shape to a dot.
XYSerie
public XYSerie()
- Creates an XYSerie object.
Default constructor.
XYSerie
public XYSerie(double[][] multipleValues)
- Creates an XYSerie object. This constructor takes a bidimensional array of
values. The subarray contains a pair of values corresponding to the xy coordinates
of a data point.
- Parameters:
multipleValues
- Bidimensional array of double precision numbers.
XYSerie
public XYSerie(double[][] multipleValues,
java.lang.String title)
- Creates an XYSerie object. This constructor takes a bidimensional array of
values and the series title. The subarray contains a pair of values
corresponding to the xy coordinates of a data point.
- Parameters:
multipleValues
- Bidimensional array of double precision numbers.title
- A String object. The series title is displayed in the legend box.
setShape
public void setShape(int shape)
- Sets data point shape. Five shapes are available: circle, square, triangle,
cross and dot.
- Parameters:
shape
- one of the constants used to set the point shape.- See Also:
SQUARE
,
CIRCLE
,
TRIANGLE
,
CROSS
,
DOT
setWidth
public void setWidth(int width)
- Sets the width of a point shape. Only affects square-shaped points. Default value is 4 pixels.
- Parameters:
width
- An integer value, larger than zero.- See Also:
setHeight(int)
setHeight
public void setHeight(int height)
- Sets the height of a point shape. Only affects square-shaped points. Default value is 4 pixels.
- Parameters:
height
- An integer value, larger than zero.