public abstract class

StackingToken

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.StackingToken

Class Overview

Used to group CartesianSeries so they can be stacked together. The way in which they are stacked depends on the type of StackingToken created.

To stack a set of series together, all series should be given the same StackingToken, that is the exact same instance. While a stacking token may be shared between series of differing types, only series of the same type will be stacked together. The supported modes of stacking vary between series types.

Summary

Public Methods
static StackingToken newCumulativeStackingToken()
Creates a new StackingToken that denotes the series should be stacked such that their values are cumulative, that is, they include values from previous series in the same stacking group.
static StackingToken newOverlappingStackingToken()
Creates a new StackingToken that denotes the series should be stacked such that they are overlapping each other.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static StackingToken newCumulativeStackingToken ()

Creates a new StackingToken that denotes the series should be stacked such that their values are cumulative, that is, they include values from previous series in the same stacking group. For example, ColumnSeries are stacked vertically, bottom to top, while BarSeries are stacked horizontally, left to right.

Series are stacked in the order they are added to the ShinobiChart; those added first will be at the base of the stack.

Returns
  • a new StackingToken that denotes the series should be stacked cumulatively

public static StackingToken newOverlappingStackingToken ()

Creates a new StackingToken that denotes the series should be stacked such that they are overlapping each other.

Series are stacked in the order they are added to the ShinobiChart; those added first will be at the base of the stack.

Returns
  • a new StackingToken that denotes the series should be stacked such that they are overlapping each other