com.jinsight.jetchart
Class LineSerie
java.lang.Object
|
+--com.jinsight.jetchart.AbstractSerie
|
+--com.jinsight.jetchart.GraphSerie
|
+--com.jinsight.jetchart.LineSerie
- public class LineSerie
- extends GraphSerie
This class implements the properties and methods of a line series.
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 |
LineSerie()
Creates a LineSerie object. |
LineSerie(double[] values)
Creates a LineSerie object. |
LineSerie(double[] values,
java.lang.String title)
Creates a LineSerie object. |
Method Summary |
protected void |
finalize()
|
void |
setCoordinatesStatus(int[] coordinatesStatus,
boolean connectAllPoints)
Sets the visibility status of a sequence of data points. |
void |
setDashSize(int dashSize)
Sets the size of a dash painted in a dashed line. |
void |
setDashSpace(int dashSpace)
Sets the size of the space between consecutive dashes painted
in a dashed line. |
void |
setLegendStyle(int legendStyle)
Sets the style of a line series legend. |
void |
setStyle(int style)
Sets the line style. |
void |
setThickness(int thickness)
Sets line thickness. |
Methods inherited from class com.jinsight.jetchart.GraphSerie |
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 |
LineSerie
public LineSerie()
- Creates a LineSerie object.
Default constructor.
LineSerie
public LineSerie(double[] values)
- Creates a LineSerie object.
- Parameters:
values
- Array of double precision numbers containing series values.
LineSerie
public LineSerie(double[] values,
java.lang.String title)
- Creates a LineSerie 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.
setStyle
public void setStyle(int style)
- Sets the line style. A line can be solid or dashed.
Default style is solid.
- Parameters:
style
- An integer value.- See Also:
GraphSerie.SOLID
,
GraphSerie.DASHED
setDashSize
public void setDashSize(int dashSize)
- Sets the size of a dash painted in a dashed line.
Default value is 10 pixels.
- Parameters:
dashSize
- An integer value.- See Also:
setStyle(int)
,
setDashSpace(int)
setDashSpace
public void setDashSpace(int dashSpace)
- Sets the size of the space between consecutive dashes painted
in a dashed line. Default value is 5 pixels.
- Parameters:
dashSpace
- An integer value.- See Also:
setStyle(int)
,
setDashSize(int)
setThickness
public void setThickness(int thickness)
- Sets line thickness. It is a number equal to or larger than 1. Default value is 1.
This method has no effect on a dashed line, which is always 1 pixel thick.
- Parameters:
thickness
- An integer number.
setCoordinatesStatus
public void setCoordinatesStatus(int[] coordinatesStatus,
boolean connectAllPoints)
- Sets the visibility status of a sequence of data points. The visibility status is
a sequence of binary digits.
A value of '0' means that the data point must not be displayed, whereas a value of '1'
keeps the data point visible. The second parameter is a flag indicating if
all discontinuous visible points must be connected, despite there being disabled points.
The binary sequence follows the sequence of labels in the labels array.
By default, discontinuous visible points are not connected.
- Parameters:
coordinatesStatus
- An integer array of binary values(0 or 1).connectAllPoints
- A boolean value(true/false).- See Also:
Graph.setLabels(java.lang.String[])
setLegendStyle
public void setLegendStyle(int legendStyle)
- Sets the style of a line series legend. The legend symbol is
by default a solid square, but its shape can be changed to
match the shape of respective line series marks, in which
case a horizontal line crossing the symbol is also displayed.
The symbol is painted in the marks color and the crossing
line is painted in the series color.
The crossing line can be solid or dashed, depending on the
line series style.
- Parameters:
legendStyle
- An integer value.- See Also:
GraphSerie.SOLID_SQUARE_LEGEND
,
GraphSerie.MARK_SHAPE_LEGEND
,
GraphSerie.setMarksEnabled(boolean)
,
setStyle(int)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class GraphSerie