lt.monarch.chart.chart2D.series
Class WaterfallBarStrategy
java.lang.Object
lt.monarch.chart.chart2D.series.AbstractBarStrategy
lt.monarch.chart.chart2D.series.BarStrategy
lt.monarch.chart.chart2D.series.WaterfallBarStrategy
- All Implemented Interfaces:
- java.io.Serializable, AbstractStrategy
public class WaterfallBarStrategy
extends BarStrategy
- See Also:
- Serialized Form
| Fields inherited from class lt.monarch.chart.chart2D.series.AbstractBarStrategy |
avoidLayoutingInvisible, barSpacing, barWidth, baseValue, clipList, colorMapper, dirty, mapper, metaModel, minMaxValues, model, orientation, seriesCount, seriesIndex, seriesSpacing, shape, style, xMapper, yMapper, zoomMultiplier |
Method Summary
void |
draw(AbstractGraphics g,
Projector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
int seriesCount,
int seriesIndex,
java.lang.Object baseValue,
float barSpacing,
float seriesSpacing,
AbstractBarSeries barSeries,
IndexedClipList clipList,
ColorMapper colorMapper)
No data painter |
double |
getBarBottom(int index,
java.lang.Object baseValue)
Gets bottom bar position |
double |
getBarTop(int index)
Gets bar top position |
boolean |
isCumulativeValueVisible()
|
void |
setCumulativeValueTitle(java.lang.Object title)
Sets cumulative value title to WaterfallBarStrategy. |
void |
setCumulativeValueVisible(boolean visible)
Sets cumulative value visible. |
| Methods inherited from class lt.monarch.chart.chart2D.series.BarStrategy |
dispose, drawNoData, drawPrimitive, finalize, get90DegRotation, getBarBoundaries, getBarPosition, getBarTransformation, getBarWidth, getBarWidth, getBottomBarTop, getDefaultShape, getLabelCount, getShapeBounds, getTransformation, getZeroValue, getZoomMultiplier, isBarInvisible |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WaterfallBarStrategy
public WaterfallBarStrategy()
getBarTop
public double getBarTop(int index)
- Description copied from class:
AbstractBarStrategy
- Gets bar top position
- Overrides:
getBarTop in class BarStrategy
- Parameters:
index - data point index
- Returns:
- bar top position
getBarBottom
public double getBarBottom(int index,
java.lang.Object baseValue)
- Description copied from class:
AbstractBarStrategy
- Gets bottom bar position
- Overrides:
getBarBottom in class BarStrategy
- Parameters:
index - index of data pointbaseValue - base line value
- Returns:
- bar bottom position
setCumulativeValueTitle
public void setCumulativeValueTitle(java.lang.Object title)
- Sets cumulative value title to WaterfallBarStrategy.
- Parameters:
title - Title to be set to the cumulative bar/column.
setCumulativeValueVisible
public void setCumulativeValueVisible(boolean visible)
- Sets cumulative value visible.
- Parameters:
visible -
isCumulativeValueVisible
public boolean isCumulativeValueVisible()
draw
public void draw(AbstractGraphics g,
Projector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
int seriesCount,
int seriesIndex,
java.lang.Object baseValue,
float barSpacing,
float seriesSpacing,
AbstractBarSeries barSeries,
IndexedClipList clipList,
ColorMapper colorMapper)
- Description copied from class:
BarStrategy
- No data painter
- Overrides:
draw in class BarStrategy
- Parameters:
g - graphics contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapshowNullValues - boolean value indicating whether to show the null valuesstyle - style objectseriesCount - series countseriesIndex - series indexbaseValue - base valuebarSpacing - bar spacingseriesSpacing - series spacingbarSeries - bar series instanceclipList - clip listcolorMapper - color mapper, which maps colors according to values