com.jinsight.jetchart
Class PointSerie
java.lang.Object
|
+--com.jinsight.jetchart.AbstractSerie
|
+--com.jinsight.jetchart.GraphSerie
|
+--com.jinsight.jetchart.PointSerie
- public class PointSerie
- extends GraphSerie
This class implements the properties and methods of points series.
Field Summary |
static int |
CIRCLE
Constant used to define the point shape to a circle. |
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. |
Fields inherited from class com.jinsight.jetchart.GraphSerie |
ABOVE_TOP_YAXIS, AREA, BAR, BAR_HLC, BAR_OHLC, BESIDE_TOP_YAXIS, CANDLESTICK, DASHED, EMPTY_CIRCLE_MARK, EMPTY_DIAMOND_MARK, EMPTY_SQUARE_MARK, EMPTY_TRIANGLE_MARK, IMAGE, LEGEND, LINE, LINE_HLC, LINE_OHLC, MARK_SHAPE_LEGEND, POINT, ROUNDED_CANDLESTICK, SOLID, SOLID_CIRCLE_MARK, SOLID_DIAMOND_MARK, SOLID_SQUARE_LEGEND, SOLID_SQUARE_MARK, SOLID_TRIANGLE_MARK, STACKED_BAR, X_MARK |
Constructor Summary |
PointSerie()
Creates a PointSerie object. |
PointSerie(double[] values)
Creates a PointSerie object. |
PointSerie(double[] values,
java.lang.String title)
Creates a PointSerie object. |
Method Summary |
void |
setHeight(int height)
Sets the height of a point shape. |
void |
setShape(int shape)
Sets point shape. |
void |
setWidth(int width)
Sets the width of a point shape. |
Methods inherited from class com.jinsight.jetchart.GraphSerie |
finalize, getColor, getMultipleValues, getRegressionLine, getSerieMap, getSerieMap, getSerieMap, getTitle, getType, getValues, removeRegressionLine, setColor, setCoordinatesStatus, setFont, setMarkLegendBackground, setMarkLegendEnabled, setMarkLegendForeground, setMarkLegendOpacityEnabled, setMarksColor, setMarksEnabled, setMarksStyle, setMultipleValues, setStartPoint, setTitle, setTitleFont, setTitlePosition, setToolTipContent, 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.
PointSerie
public PointSerie()
- Creates a PointSerie object.
Default constructor.
PointSerie
public PointSerie(double[] values)
- Creates a PointSerie object.
- Parameters:
values
- Array of double precision numbers containing series values.
PointSerie
public PointSerie(double[] values,
java.lang.String title)
- Creates a PointSerie object.
- Parameters:
values
- Array of double precision numbers containing series values.title
- String containing series title. The series title is displayed in the legend box.
setShape
public void setShape(int shape)
- Sets point shape. Three shapes are supported: circle, square and triangle.
- Parameters:
shape
- one of the constants used to set the point shape.- See Also:
SQUARE
,
CIRCLE
,
TRIANGLE
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.