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

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

public class ScatterStrategy<ChartProjector extends Projector>
extends AbstractLineStrategy<ChartProjector>

Scatter series strategy. If you have null points in your scatter strategy, use markers to display them, because otherwise they are skipped.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
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
ScatterStrategy()
           
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes the object
 void draw(AbstractGraphics g, ChartProjector projector, PlaneMapper mapper, HotSpotMap hotMap, boolean showNullValues, Style style, java.lang.Object baseValue, AbstractLineSeries<ChartProjector> series)
          Draws the series in the chart area.
 Point2D getLinePointByX(double x)
          Calculates line Point2D value for a given x coordinate.
 
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScatterStrategy

public ScatterStrategy()
Method Detail

dispose

public void dispose()
Description copied from class: AbstractLineStrategy
Disposes the object

Specified by:
dispose in class AbstractLineStrategy<ChartProjector extends Projector>

draw

public void draw(AbstractGraphics g,
                 ChartProjector projector,
                 PlaneMapper mapper,
                 HotSpotMap hotMap,
                 boolean showNullValues,
                 Style style,
                 java.lang.Object baseValue,
                 AbstractLineSeries<ChartProjector> series)
Description copied from class: AbstractLineStrategy
Draws the series in the chart area.

Overrides:
draw in class AbstractLineStrategy<ChartProjector extends Projector>
Parameters:
g - graphics context
projector - projector instance
mapper - plane mapper
hotMap - hot spot map
showNullValues - boolean value indicating whether to show the null values
style - style object
baseValue - base value
series - scatter series instance

getLinePointByX

public Point2D getLinePointByX(double x)
Description copied from class: AbstractLineStrategy
Calculates line Point2D value for a given x coordinate.

Overrides:
getLinePointByX in class AbstractLineStrategy<ChartProjector extends Projector>
Parameters:
x - coordinate for which the corresponding line point must be calculated.
Returns:
y calculated line value