lt.monarch.chart.chart2D.series
Class NullSplineStrategy<ChartProjector extends Projector>
java.lang.Object
lt.monarch.chart.chart2D.series.AbstractLineStrategy<ChartProjector>
lt.monarch.chart.chart2D.series.LineStrategy<ChartProjector>
lt.monarch.chart.chart2D.series.SplineStrategy<ChartProjector>
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
| 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 |
| 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 java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dots
protected boolean dots
keys
protected double[] keys
values
protected double[] values
contunuousValuesCount
protected int contunuousValuesCount
NullSplineStrategy
public NullSplineStrategy()
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 - Graphicsprojector - Projectorseries - 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 seriessplineStrategy - spline drawing strategy (i.e. the AbstractSpline implementation)model - data model of the splinepseudo - pseudo data model of the spline, for null determination
- Returns:
- returns array of polygons and specifies if the polygon is null