Package totalcross.ui.chart
Class Series
- java.lang.Object
-
- totalcross.ui.chart.Series
-
public class Series extends java.lang.ObjectThe series of data that will be shown in the charts.
-
-
Field Summary
Fields Modifier and Type Field Description intcolorThe color to be used when drawing this series on a chartImagedotAn image that will be used in some chars, to be used instead of a circle.intdotVAlignThe alignment of the dot image.java.lang.StringnameThis series' namedouble[]xValuesThis series' values for the X axisdouble[]yValuesThis series' values for the Y axis
-
Constructor Summary
Constructors Constructor Description Series(java.lang.String name, double[] xValues, double[] yValues, int color)Creates a new seriesSeries(java.lang.String name, double[] xValues, double[] yValues, Image dot)Creates a new seriesSeries(java.lang.String name, double[] yValues, int color)Creates a new category series
-
-
-
Field Detail
-
name
public java.lang.String name
This series' name
-
xValues
public double[] xValues
This series' values for the X axis
-
yValues
public double[] yValues
This series' values for the Y axis
-
color
public int color
The color to be used when drawing this series on a chart
-
dot
public Image dot
An image that will be used in some chars, to be used instead of a circle.- See Also:
dotVAlign
-
dotVAlign
public int dotVAlign
The alignment of the dot image. Use CENTER (default), TOP or BOTTOM.
-
-
Constructor Detail
-
Series
public Series(java.lang.String name, double[] yValues, int color)Creates a new category series- Parameters:
name- the series' nameyValues- the series' values for the Y axis (one for each category)color- the color to be used when drawing the series on a chart
-
Series
public Series(java.lang.String name, double[] xValues, double[] yValues, int color)Creates a new series- Parameters:
name- the series' namexValues- the series' values for the X axisyValues- the series' values for the Y axiscolor- the color to be used when drawing the series on a chart
-
Series
public Series(java.lang.String name, double[] xValues, double[] yValues, Image dot)Creates a new series- Parameters:
name- the series' namexValues- the series' values for the X axisyValues- the series' values for the Y axisdot- The image to be used instead of a circle.
-
-