public final class

BarSeries

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

Class Overview

Displays a BarSeries on the chart. A BarSeries is visualized as a horizontal rectangle on the chart, where the width of the rectangle equates to the y value of the data point. The area of the bar can be filled, depending on the style of the series.

BarSeries may be stacked on each other by using the setStackId(Integer) method.

Summary

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

Constructs a new BarSeries.

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

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

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

Returns

public void setSeriesStyleProvider (SeriesStyleProvider<BarSeriesStyle> seriesStyleProvider)

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