lt.monarch.chart.chart2D.series
Class ScatterStrategy<ChartProjector extends Projector>
java.lang.Object
lt.monarch.chart.chart2D.series.AbstractLineStrategy<ChartProjector>
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
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScatterStrategy
public ScatterStrategy()
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 contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapshowNullValues - boolean value indicating whether to show the null valuesstyle - style objectbaseValue - base valueseries - 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