lt.monarch.chart.chart2D.series
Class PercentageAreaBarStrategy<ChartProjector extends Projector>

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.PercentageAreaBarStrategy<ChartProjector>
All Implemented Interfaces:
java.io.Serializable, AbstractStrategy

public class PercentageAreaBarStrategy<ChartProjector extends Projector>
extends BarStrategy

PercentageAreaBarStrategy

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
PercentageAreaBarStrategy()
          PercentageAreaBarStrategy constructor
 
Method Summary
Modifier and Type Method and Description
 void drawPrimitive(AbstractGraphics g, int index, Projector projector, HotSpotMap hotMap, boolean showNullValues, java.lang.Object baseValue, AbstractBarSeries barSeries)
          Draws one primitive
 ArrayDataModel getModel()
          Gets strategy data model
protected  boolean isStacked()
          Checks if the data model is stacked
 
Methods inherited from class lt.monarch.chart.chart2D.series.BarStrategy
dispose, draw, drawNoData, finalize, get90DegRotation, getBarBottom, getBarBoundaries, getBarPosition, getBarTop, getBarTransformation, getBarWidth, getBarWidth, getBottomBarTop, getDefaultShape, getLabelCount, getShapeBounds, getTransformation, getZeroValue, getZoomMultiplier, isBarInvisible
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractBarStrategy
getMinMaxValues
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentageAreaBarStrategy

public PercentageAreaBarStrategy()
PercentageAreaBarStrategy constructor

Method Detail

drawPrimitive

public void drawPrimitive(AbstractGraphics g,
                          int index,
                          Projector projector,
                          HotSpotMap hotMap,
                          boolean showNullValues,
                          java.lang.Object baseValue,
                          AbstractBarSeries barSeries)
Description copied from class: AbstractBarStrategy
Draws one primitive

Overrides:
drawPrimitive in class BarStrategy
Parameters:
g - graphics context
index - data point index
projector - projector
hotMap - hot spot map
showNullValues - if true show null values
baseValue - base line value
barSeries - bar series instance

isStacked

protected boolean isStacked()
Checks if the data model is stacked

Returns:
true if data model is stacked on something

getModel

public ArrayDataModel getModel()
Description copied from interface: AbstractStrategy
Gets strategy data model

Specified by:
getModel in interface AbstractStrategy
Overrides:
getModel in class AbstractBarStrategy
Returns:
strategy data model