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

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.AbstractLineStrategy<ChartProjector>
      extended by lt.monarch.chart.chart2D.series.LineStrategy<ChartProjector>
          extended by lt.monarch.chart.chart2D.series.PercentageAreaLineStrategy<ChartProjector>
All Implemented Interfaces:
java.io.Serializable, AbstractStrategy

public class PercentageAreaLineStrategy<ChartProjector extends Projector>
extends LineStrategy<ChartProjector>

PercentageAreaLineStrategy

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.LineStrategy
bottomPolygon, firstX, isSortedSeries, lastX, lineOrientation, polygon, pseudoModel
 
Fields inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy
baseValue, cachingEnabled, dirty, isConnected, mapper, metaModel, minMaxValues, model, paintMode, planePoint, projector, showNullValues, style, tempPoint, xMapper, yMapper, zoomMultiplier
 
Constructor Summary
Constructor and Description
PercentageAreaLineStrategy()
          PercentageAreaLineStrategy constructor
 
Method Summary
Modifier and Type Method and Description
protected  void calculatePercentageValues()
          Calculate percentage values
protected  void drawLine(AbstractGraphics g, AbstractLineSeries<ChartProjector> series)
          Paints the connected series line in the specified Graphics context.
 ArrayDataModel getModel()
          Gets strategy data model
 
Methods inherited from class lt.monarch.chart.chart2D.series.LineStrategy
binarySearch, cacheLines, determineLineDirection, dispose, draw, formNewPolygon, getDataValueMappingHeight, getEndIndex, getLinePointByX, getPointPosition, getStartIndex, getValue, initDrawing, isDataInverted, isStacked, showNullPoints
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy
calculateSelection, getMinMaxValues, getX, getY, projectPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentageAreaLineStrategy

public PercentageAreaLineStrategy()
PercentageAreaLineStrategy constructor

Method Detail

calculatePercentageValues

protected void calculatePercentageValues()
Calculate percentage values


drawLine

protected void drawLine(AbstractGraphics g,
                        AbstractLineSeries<ChartProjector> series)
Description copied from class: LineStrategy
Paints the connected series line in the specified Graphics context.

Overrides:
drawLine in class LineStrategy<ChartProjector extends Projector>
Parameters:
g - the Graphics context in which to paint the series line. NOTE: setShowNullValues(boolean) works a little different here. When set to true, the line is broken and started from the next non-null point value. When set to false, the null values are simply ignored: the line connects all non-null value points.
series - Chart series to which this strategy belongs
See Also:
AbstractChartSeries.setShowNullValues(boolean)

getModel

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

Specified by:
getModel in interface AbstractStrategy
Overrides:
getModel in class AbstractLineStrategy<ChartProjector extends Projector>
Returns:
strategy data model