com.jinsight.jetchart
Class OHLCBarSerie

java.lang.Object
  |
  +--com.jinsight.jetchart.AbstractSerie
        |
        +--com.jinsight.jetchart.GraphSerie
              |
              +--com.jinsight.jetchart.OHLCSerie
                    |
                    +--com.jinsight.jetchart.OHLCStickSerie
                          |
                          +--com.jinsight.jetchart.OHLCBarSerie

public class OHLCBarSerie
extends OHLCStickSerie

This class implements the properties and methods of an OHLC bar series. An OHLC bar series is depicted as a sequence of vertical sticks, each one displaying two dashes, connected to the left and right sides. This series is used in financial charts, and each stick plotted in a chart represents four values. The top and bottom of a stick represent the 'high' and 'low' values, whereas the left and right dashes represent the 'open' and 'close' values, respectively. The left dash can be omitted by setting the series type to BAR_HLC.

See Also:
OHLCSerie.setType(int)

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
 
Constructor Summary
OHLCBarSerie()
          Creates an OHLCBarSerie object.
OHLCBarSerie(double[][] multipleValues)
          Creates an OHLC series.
OHLCBarSerie(double[][] multipleValues, java.lang.String title)
          Creates an OHLC series.
 
Method Summary
 void setDashSize(int dashSize)
          Sets the size of dashes displayed to the left and right sides of an OHLC bar.
 void setDashThickness(int dashThickness)
          Sets the thickness of dashes displayed to the left and right sides of an OHLC bar.
 
Methods inherited from class com.jinsight.jetchart.OHLCStickSerie
finalize, setBearishColor, setBullishColor, setWidth
 
Methods inherited from class com.jinsight.jetchart.OHLCSerie
setToolTipText, setType
 
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
 

Constructor Detail

OHLCBarSerie

public OHLCBarSerie()
Creates an OHLCBarSerie object. Default constructor.

OHLCBarSerie

public OHLCBarSerie(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.

OHLCBarSerie

public OHLCBarSerie(double[][] multipleValues,
                    java.lang.String title)
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. 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.
Method Detail

setDashSize

public void setDashSize(int dashSize)
Sets the size of dashes displayed to the left and right sides of an OHLC bar. Default value is 7 pixels.
Parameters:
dashSize - An integer value.

setDashThickness

public void setDashThickness(int dashThickness)
Sets the thickness of dashes displayed to the left and right sides of an OHLC bar. Default value is 1 pixel.
Parameters:
dashThickness - An integer value.