lt.monarch.chart.chart2D.series
Class SPCBarStrategy

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

public class SPCBarStrategy
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
SPCBarStrategy()
           
 
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
 double getBarBottom(int index, java.lang.Object baseValue)
          Gets bottom bar position
protected  Rectangle2D getBarBoundaries(int index, java.lang.Object baseValue)
          Transforms the specified bar.
 double getBarTop(int index)
          Gets bar top position
 Shape2D getDefaultShape()
          Returns the default strategy shape
 
Methods inherited from class lt.monarch.chart.chart2D.series.BarStrategy
dispose, draw, drawNoData, finalize, get90DegRotation, getBarPosition, getBarTransformation, getBarWidth, getBarWidth, getBottomBarTop, 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

SPCBarStrategy

public SPCBarStrategy()
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

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

getBarBoundaries

protected Rectangle2D getBarBoundaries(int index,
                                       java.lang.Object baseValue)
Transforms the specified bar. Shifts according to transformation and determines it's top and bottom bounds.

Overrides:
getBarBoundaries in class BarStrategy
Parameters:
index - index of the data point
baseValue - base value
Returns:
returns boundary of the bar

getDefaultShape

public Shape2D getDefaultShape()
Description copied from class: AbstractBarStrategy
Returns the default strategy shape

Overrides:
getDefaultShape in class BarStrategy
Returns:
default strategy shape