com.jinsight.jetchart
Class OHLCLineSerie
java.lang.Object
|
+--com.jinsight.jetchart.AbstractSerie
|
+--com.jinsight.jetchart.GraphSerie
|
+--com.jinsight.jetchart.OHLCSerie
|
+--com.jinsight.jetchart.OHLCLineSerie
- public class OHLCLineSerie
- extends OHLCSerie
This class implements the properties and methods of an OHLC line series.
An OHLC line series is visually identical to a line series, represented
by the LineSerie class. The difference is that an OHLC line series data
point is associated with four values, the 'open', 'high', 'low' and 'close'
values, which are related to financial charts. The line plotted by an
OHLC line series represents a sequence of 'close' values, and tooltips
can display either the four values or just the 'high','low' and 'close'
values, setting the series type to LINE_OHLC or LINE_HLC, respectively.
- See Also:
OHLCSerie.setType(int)
,
LineSerie
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 |
OHLCLineSerie()
Creates an OHLCLineSerie object. |
OHLCLineSerie(double[][] multipleValues)
Creates an OHLC series. |
OHLCLineSerie(double[][] multipleValues,
java.lang.String title)
Creates an OHLC serie. |
Method Summary |
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 an OHLC/HLC line series legend. |
void |
setStyle(int style)
Sets the line style. |
void |
setThickness(int lineThickness)
Sets the thickness of OHLC/HLC line series. |
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 |
OHLCLineSerie
public OHLCLineSerie()
- Creates an OHLCLineSerie object.
Default constructor.
OHLCLineSerie
public OHLCLineSerie(double[][] multipleValues)
- Creates an OHLC series. The values of each coordinate(high,low,open,close) must
be passed as elements of a bidimensional array of double precision numbers.
- Parameters:
multipleValues
- A bidimensional array of double precision numbers.
OHLCLineSerie
public OHLCLineSerie(double[][] multipleValues,
java.lang.String title)
- Creates an OHLC serie. The values of each coordinate(high,low,open,close) must
be passed as elements of a bidimensional array of double precision numbers.
The series title is passed as the second parameter.
- Parameters:
multipleValues
- A bidimensional array of double precision numbers.title
- String containing series title. Will be displayed in the chart 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 lineThickness)
- Sets the thickness of OHLC/HLC line series.
- Parameters:
lineThickness
- An int value. Default is 1.
setLegendStyle
public void setLegendStyle(int legendStyle)
- Sets the style of an OHLC/HLC line series legend. The legend
symbol is by default a solid square, but its shape can be changed
to match the shape of respective 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
series style.
- Parameters:
legendStyle
- An integer value.- See Also:
GraphSerie.SOLID_SQUARE_LEGEND
,
GraphSerie.MARK_SHAPE_LEGEND
,
GraphSerie.setMarksEnabled(boolean)
,
setStyle(int)