com.jinsight.jetchart
Class OHLCSerie

java.lang.Object
  |
  +--com.jinsight.jetchart.AbstractSerie
        |
        +--com.jinsight.jetchart.GraphSerie
              |
              +--com.jinsight.jetchart.OHLCSerie
Direct Known Subclasses:
OHLCLineSerie, OHLCStickSerie

public abstract class OHLCSerie
extends GraphSerie

OHLC charts are a viable and effective tool for stock and commodity timing and analysis. The OHLCSerie class is the superclass of three types of ohlc series: CandleStickSerie, OHLCBarSerie and OHLCLineSerie.

OHLC charts are always 2D and vertical. Setting the 3D property of the Graph object to true or the orientation property to Graph.HORIZONTAL has no effect, even if an OHLC series is displayed together with any other type of series. It is not possible to display data points legends or highlight OHLC series, except for OHLC line series, which can only be highlighted.

An OHLC series dispatches series events, but it can not be dragged.

The default color is black for OHLC/HLC bars and OHLC/HLC line series and white/black for bullish/bearish candlesticks charts, respectively.

See Also:
Graph, GraphSerie.setMarkLegendEnabled(boolean), Graph.setSerieDraggingEnabled(boolean)

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
 
Fields inherited from class com.jinsight.jetchart.AbstractSerie
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA
 
Method Summary
protected  void finalize()
           
 void setToolTipText(java.lang.String[] ohlcToolTipText)
          Sets the texts to prefix values displayed in tooltips.
 void setType(int type)
          Sets the type of the OHLC 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 com.jinsight.jetchart.AbstractSerie
getId, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipEnabled, setValueFormat, setValues
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setToolTipText

public void setToolTipText(java.lang.String[] ohlcToolTipText)
Sets the texts to prefix values displayed in tooltips. Default texts are: 'High:,Low:,Open:,Close:'
Parameters:
ohlcToolTipText - An array of String objects.

setType

public void setType(int type)
Sets the type of the OHLC series.
Parameters:
type - An integer number.
See Also:
GraphSerie.BAR_OHLC, GraphSerie.BAR_HLC, GraphSerie.LINE_OHLC, GraphSerie.LINE_HLC, GraphSerie.CANDLESTICK, GraphSerie.ROUNDED_CANDLESTICK

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class GraphSerie