Plotter<S>
LinePlotter
public abstract class SimpleDecalPlotter<S extends Style> extends AbstractPlotter<S>
Modifier | Constructor | Description |
---|---|---|
protected |
SimpleDecalPlotter(java.lang.String name,
javax.swing.Icon icon,
CoordGroup cgrp,
boolean hasReports) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
PlotLayer |
createLayer(DataGeom geom,
DataSpec dataSpec,
S style) |
Creates a PlotLayer based on the given geometry, data and style.
|
protected abstract LayerOpt |
getLayerOpt(S style) |
Indicates the layer optimisation options that apply to a given style.
|
protected abstract void |
paintData2D(Surface surface,
DataStore dataStore,
DataGeom geom,
DataSpec dataSpec,
S style,
java.awt.Graphics g,
PaperType paperType) |
Called during Decal painting to perform the actual plot.
|
getCoordGroup, getPlotterIcon, getPlotterName, hasReports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStyle, getPlotterDescription, getStyleKeys
protected SimpleDecalPlotter(java.lang.String name, javax.swing.Icon icon, CoordGroup cgrp, boolean hasReports)
name
- plotter nameicon
- plotter iconcgrp
- coordinate grouphasReports
- whether plot reports are generatedpublic PlotLayer createLayer(DataGeom geom, DataSpec dataSpec, S style)
Plotter
The style
parameter is the result of a call to
Plotter.createStyle(uk.ac.starlink.ttools.plot2.config.ConfigMap)
.
The dataSpec
parameter must contain the coordinates
defined by this plotter's CoordGroup.
The pointDataGeom
parameter is only used if
getCoordGroup()
.
getPositionCount
returns a non-zero value,
otherwise the plot does not have point positions.
It is legal to supply null for any of the parameters; if insufficient data is supplied to generate a plot, then the method should return null.
Creating a layer should be cheap; layers may be created and not used.
geom
- indicates base position coordinates and their
mapping to points in the data space;
if non-null, the data geom's
DataGeom.hasPosition()
method will return truedataSpec
- specifies the data required for the plotstyle
- data style as obtained from createStyle
protected abstract LayerOpt getLayerOpt(S style)
style
- plot styleprotected abstract void paintData2D(Surface surface, DataStore dataStore, DataGeom geom, DataSpec dataSpec, S style, java.awt.Graphics g, PaperType paperType)
surface
- plot surfacedataStore
- data storage objectgeom
- data geometrystyle
- plot styleg
- graphics contextpaperType
- paper typeCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.