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

public class NullSplineStrategy<ChartProjector extends Projector>
extends SplineStrategy<ChartProjector>

Paints spline, where null values are skipped.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.chart2D.series.SplineStrategy
SplineStrategy.SplinePolygon
 
Field Summary
Modifier and Type Field and Description
protected  int contunuousValuesCount
           
protected  boolean dots
           
protected  double[] keys
           
protected  double[] values
           
 
Fields inherited from class lt.monarch.chart.chart2D.series.SplineStrategy
end, splineStrategy, start, step
 
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
NullSplineStrategy()
           
 
Method Summary
Modifier and Type Method and Description
protected  java.util.List<SplineStrategy.SplinePolygon> calculatePoints(AbstractGraphics g, AbstractSpline splineStrategy, ArrayDataModel model, PseudoArrayDataModel pseudo)
          Paints the spline series in the specified Graphics context.
protected  void drawLineAndFill(AbstractGraphics g, Projector projector, SplineStrategy.SplinePolygon spline, SplineStrategy.SplinePolygon bottomSpline, AbstractLineSeries<ChartProjector> series)
          Draws the polyline and toFill polygon
 
Methods inherited from class lt.monarch.chart.chart2D.series.SplineStrategy
addPoint, dispose, drawLine, finalize, getLinePointByX, getSplineStrategy, getStep, getYValue, getYValues, setSplineStrategy, setStep, showNullPoints
 
Methods inherited from class lt.monarch.chart.chart2D.series.LineStrategy
binarySearch, cacheLines, determineLineDirection, draw, formNewPolygon, getDataValueMappingHeight, getEndIndex, getPointPosition, getStartIndex, getValue, initDrawing, isDataInverted, isStacked
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy
calculateSelection, getMinMaxValues, getModel, getX, getY, projectPoint
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dots

protected boolean dots

keys

protected double[] keys

values

protected double[] values

contunuousValuesCount

protected int contunuousValuesCount
Constructor Detail

NullSplineStrategy

public NullSplineStrategy()
Method Detail

drawLineAndFill

protected void drawLineAndFill(AbstractGraphics g,
                               Projector projector,
                               SplineStrategy.SplinePolygon spline,
                               SplineStrategy.SplinePolygon bottomSpline,
                               AbstractLineSeries<ChartProjector> series)
Description copied from class: SplineStrategy
Draws the polyline and toFill polygon

Overrides:
drawLineAndFill in class SplineStrategy<ChartProjector extends Projector>
Parameters:
g - Graphics
projector - Projector
series - Chart series to which this strategy belongs

calculatePoints

protected java.util.List<SplineStrategy.SplinePolygon> calculatePoints(AbstractGraphics g,
                                                                       AbstractSpline splineStrategy,
                                                                       ArrayDataModel model,
                                                                       PseudoArrayDataModel pseudo)
Description copied from class: SplineStrategy
Paints the spline series in the specified Graphics context.

Overrides:
calculatePoints in class SplineStrategy<ChartProjector extends Projector>
Parameters:
g - the Graphics context in which to paint the series
splineStrategy - spline drawing strategy (i.e. the AbstractSpline implementation)
model - data model of the spline
pseudo - pseudo data model of the spline, for null determination
Returns:
returns array of polygons and specifies if the polygon is null