lt.monarch.chart.chart2D.series
Class ErrorBarStrategy

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.FloatingBarStrategy
              extended by lt.monarch.chart.chart2D.series.ErrorBarStrategy
All Implemented Interfaces:
java.io.Serializable, AbstractStrategy

public class ErrorBarStrategy
extends FloatingBarStrategy

Strategy that draws error bars. If you want to stack error bar strategy on top of the bar strategy, then VALUE (i.e. Y value) must be 0, so that it would match the height of the bar.

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
ErrorBarStrategy()
           
 
Method Summary
Modifier and Type Method and Description
 double getBarBottom(int index, java.lang.Object baseValue)
          Gets bottom bar position
 double getBarTop(int index)
          Gets bar top position
 Shape2D getDefaultShape()
          Returns the default strategy shape
 
Methods inherited from class lt.monarch.chart.chart2D.series.FloatingBarStrategy
drawPrimitive, getBarTopValue
 
Methods inherited from class lt.monarch.chart.chart2D.series.BarStrategy
dispose, draw, drawNoData, finalize, get90DegRotation, getBarBoundaries, 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

ErrorBarStrategy

public ErrorBarStrategy()
Method Detail

getBarTop

public double getBarTop(int index)
Description copied from class: AbstractBarStrategy
Gets bar top position

Overrides:
getBarTop in class FloatingBarStrategy
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 FloatingBarStrategy
Parameters:
index - index of data point
baseValue - base line value
Returns:
bar bottom position

getDefaultShape

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

Overrides:
getDefaultShape in class FloatingBarStrategy
Returns:
default strategy shape