lt.monarch.chart.chart2D.series
Class EventStrategy
java.lang.Object
lt.monarch.chart.chart2D.series.AbstractBarStrategy
lt.monarch.chart.chart2D.series.BarStrategy
lt.monarch.chart.chart2D.series.FloatingBarStrategy
lt.monarch.chart.chart2D.series.EventStrategy
- All Implemented Interfaces:
- java.io.Serializable, AbstractStrategy
public class EventStrategy
extends FloatingBarStrategy
Event strategy, used to draw horizontal bars as events
- 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 |
| 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 java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventStrategy
public EventStrategy()
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 FloatingBarStrategy
- Parameters:
g - graphics contextindex - data point indexprojector - projectorhotMap - hot spot mapshowNullValues - if true show null valuesbaseValue - base line valuebarSeries - bar series instance
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
getBarTopValue
protected double getBarTopValue(int index,
java.lang.Object value)
- Gets bar top value
- Overrides:
getBarTopValue in class FloatingBarStrategy
- Parameters:
index - index of barvalue - value of that index
- Returns:
- normalized position value
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 pointbaseValue - 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