public class

OHLCSeries

extends CartesianSeries<T extends SeriesStyle>
java.lang.Object
   ↳ com.shinobicontrols.charts.Series<T extends com.shinobicontrols.charts.SeriesStyle>
     ↳ com.shinobicontrols.charts.CartesianSeries<T extends com.shinobicontrols.charts.SeriesStyle>
       ↳ com.shinobicontrols.charts.OHLCSeries

Class Overview

Displays an OHLC series on the chart. Each data point in an OHLC series is visualized as a line between the high and low values, with short perpendicular bars indicating the open and close positions.

OHLCSeries expects data points implementing MultiValueData, and MultiValueDataPoint implements this interface.

OHLC series do not stack, and the setStackId(Integer) method has no effect. Similarly, baselines are not applicable to OHLCSeries and the setBaseline(Object) method has no effect.

OHLC series are a Premium-only feature. In the Standard edition, attempting to add instances of the series to a chart will result in an java.lang.UnsupportedOperationException being thrown

Summary

Public Constructors
OHLCSeries()
Constructs a new OHLCSeries.
Public Methods
SeriesStyleProvider<T extends SeriesStyle> createDefaultSeriesStyleProvider()
Creates the default SeriesStyleProvider for this Series type.
SeriesStyleProvider<OHLCSeriesStyle> getSeriesStyleProvider()
Returns a SeriesStyleProvider which provides OHLCSeriesStyle objects for the purposes of styling this OHLCSeries' per-point applicable styles.
void setBaseline(Object baseline)
Sets the baseline value for this cartesian series.
void setSeriesStyleProvider(SeriesStyleProvider<OHLCSeriesStyle> seriesStyleProvider)
Sets the SeriesStyleProvider to be used to provide OHLCSeriesStyle objects for the purposes of styling this OHLCSeries' per-point applicable styles.
[Expand]
Inherited Methods
From class com.shinobicontrols.charts.CartesianSeries
From class com.shinobicontrols.charts.Series
From class java.lang.Object

Public Constructors

public OHLCSeries ()

Constructs a new OHLCSeries.

Public Methods

public SeriesStyleProvider<T extends SeriesStyle> createDefaultSeriesStyleProvider ()

Creates the default SeriesStyleProvider for this Series type.

This particular implementation provides one of the two Series-level SeriesStyle objects: that obtained from getSelectedStyle() or from getStyle(), depending on whether the individual data point is selected or not.

Returns

public SeriesStyleProvider<OHLCSeriesStyle> getSeriesStyleProvider ()

Returns a SeriesStyleProvider which provides OHLCSeriesStyle objects for the purposes of styling this OHLCSeries' per-point applicable styles.

By default, this OHLCSeries has the SeriesStyleProvider created by the createDefaultSeriesStyleProvider() method set on it.

Returns

public void setBaseline (Object baseline)

Sets the baseline value for this cartesian series. This is on the X or Y-axis depending on the orientation of the series. For example, the Y-axis for LineSeries and ColumnSeries, the X-axis for BarSeries).

Certain styling options for a series are based on the baseline and thus the baseline value will affect the visual appearance of a series. For example, for a LineSeries, in its LineSeriesStyle object you can set the area color above and below the baseline.

If no baseline has been explicitly set this method will return null. In this case, for Bar and ColumnSeries, the baseline value that will be used internally will be zero. For LineSeries it will be the minimum of the axis' default range.

Financial series (BandSeries, OHLCSeries and CandlestickSeries) ignore any baseline value set on them.

Parameters
baseline The baseline for this cartesian series

public void setSeriesStyleProvider (SeriesStyleProvider<OHLCSeriesStyle> seriesStyleProvider)

Sets the SeriesStyleProvider to be used to provide OHLCSeriesStyle objects for the purposes of styling this OHLCSeries' per-point applicable styles.

SeriesStyleProvider implementations can achieve individual point styling by returning customized styles for particular data points based on their properties. The default SeriesStyleProvider for a particular Series type can be obtained through the createDefaultSeriesStyleProvider() method.

The given SeriesStyleProvider must not be null otherwise an IllegalArgumentException will be thrown.

Parameters
seriesStyleProvider the SeriesStyleProvider to use for styling this OHLCSeries' per-point applicable styles, must not be null