lt.monarch.chart.chart2D.series
Class WaterfallBarStrategy

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.AbstractBarStrategy
      extended by lt.monarch.chart.chart2D.series.BarStrategy
          extended by lt.monarch.chart.chart2D.series.WaterfallBarStrategy
All Implemented Interfaces:
java.io.Serializable, AbstractStrategy

public class WaterfallBarStrategy
extends BarStrategy

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.BarStrategy
projectionArea, size
 
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
 
Constructor Summary
Constructor and Description
WaterfallBarStrategy()
           
 
Method Summary
Modifier and Type Method and Description
 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 lt.monarch.chart.chart2D.series.AbstractBarStrategy
getMinMaxValues, getModel
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaterfallBarStrategy

public WaterfallBarStrategy()
Method Detail

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 point
baseValue - 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 context
projector - projector instance
mapper - plane mapper
hotMap - hot spot map
showNullValues - boolean value indicating whether to show the null values
style - style object
seriesCount - series count
seriesIndex - series index
baseValue - base value
barSpacing - bar spacing
seriesSpacing - series spacing
barSeries - bar series instance
clipList - clip list
colorMapper - color mapper, which maps colors according to values