public class

CandlestickSeries

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.CandlestickSeries

Class Overview

Displays a candlestick series on the chart. Each data point in a candlestick series is visualized as a thick candle between the open and close values, with 'wicks' indicating the high and low positions.

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

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

Candlestick 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
CandlestickSeries()
Constructs a new CandlestickSeries.
Public Methods
SeriesStyleProvider<T extends SeriesStyle> createDefaultSeriesStyleProvider()
Creates the default SeriesStyleProvider for this Series type.
SeriesStyleProvider<CandlestickSeriesStyle> getSeriesStyleProvider()
Returns a SeriesStyleProvider which provides CandlestickSeriesStyle objects for the purposes of styling this CandlestickSeries' per-point applicable styles.
void setBaseline(Object baseline)
Sets the baseline value for this cartesian series.
void setSeriesStyleProvider(SeriesStyleProvider<CandlestickSeriesStyle> seriesStyleProvider)
Sets the SeriesStyleProvider to be used to provide CandlestickSeriesStyle objects for the purposes of styling this CandlestickSeries' 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 CandlestickSeries ()

Constructs a new CandlestickSeries.

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<CandlestickSeriesStyle> getSeriesStyleProvider ()

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

By default, this CandlestickSeries 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<CandlestickSeriesStyle> seriesStyleProvider)

Sets the SeriesStyleProvider to be used to provide CandlestickSeriesStyle objects for the purposes of styling this CandlestickSeries' 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 CandlestickSeries' per-point applicable styles, must not be null