Class StackedSeriesLookup
- java.lang.Object
-
- org.eclipse.birt.chart.computation.withaxes.StackedSeriesLookup
-
public final class StackedSeriesLookup extends java.lang.ObjectImplements a double lookup data structure for stacked series. It also maintains a min/max value for each unit needed to build the scale.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StackedSeriesLookupcreate(ChartWithAxes cwa, RunTimeContext rtc)intgetSeriesCount(Axis ax)StackGroupgetStackGroup(Series se)java.util.List<StackGroup>getStackGroups(Axis ax)AxisSubUnitgetSubUnit(StackGroup sg, int iUnitIndex)AxisSubUnitgetUnit(Series se, int iUnitIndex)Returns an AxisUnit needed to 'remember' the position of the next stacked bar to be rendered.intgetUnitCount()voidresetSubUnits()
-
-
-
Method Detail
-
getStackGroups
public java.util.List<StackGroup> getStackGroups(Axis ax)
-
getSeriesCount
public int getSeriesCount(Axis ax)
-
getStackGroup
public StackGroup getStackGroup(Series se)
- Parameters:
se-- Returns:
- The stack group associated with a specified Series
-
getSubUnit
public AxisSubUnit getSubUnit(StackGroup sg, int iUnitIndex)
- Parameters:
sg-iUnitIndex-- Returns:
- An AxisUnit corresponding to a given stack group and specified unit index
-
getUnit
public AxisSubUnit getUnit(Series se, int iUnitIndex)
Returns an AxisUnit needed to 'remember' the position of the next stacked bar to be rendered. If a series is not 'stackable' or not 'set as stacked', this method will return 'null'.- Parameters:
ax-se-iUnitIndex-- Returns:
- unit
-
resetSubUnits
public void resetSubUnits()
-
create
public static StackedSeriesLookup create(ChartWithAxes cwa, RunTimeContext rtc) throws ChartException, java.lang.IllegalArgumentException
- Parameters:
cwa-- Returns:
- Throws:
ChartExceptionjava.lang.IllegalArgumentException
-
getUnitCount
public int getUnitCount()
-
-