public abstract class CombineArrayPlotter<S extends CombineArrayPlotter.CombineArrayStyle> extends AbstractPlotter<S>
This plotter is written to cope with blank values for one or other of the X/Y coordinates; if one is blank, it taken to indicate a sequence of values 0, 1, 2, ..., which is probably reasonable for a plot. At present, it will never be fed null values, since FloatingArrayCoord.X/Y are marked required, but if the input coordinates are changed to be optional at some point, it ought to work with that.
Modifier and Type | Class and Description |
---|---|
static class |
CombineArrayPlotter.CombineArrayStyle
Partial Style implementation for use with this class.
|
Modifier and Type | Field and Description |
---|---|
static ConfigKey<Combiner> |
XCOMBINER_KEY
Configuration key for X coordinate combination mode.
|
static ReportKey<double[]> |
XS_REPKEY
Report key for combined X array values.
|
static ConfigKey<Combiner> |
YCOMBINER_KEY
Configuration key for Y coordinate combination mode.
|
static ReportKey<double[]> |
YS_REPKEY
Report key for combined Y array values.
|
Modifier | Constructor and Description |
---|---|
protected |
CombineArrayPlotter(String name,
Icon icon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PlotLayer |
createLayer(DataGeom geom,
DataSpec dataSpec,
CombineArrayPlotter.CombineArrayStyle style)
Creates a PlotLayer based on the given geometry, data and style.
|
Object |
getRangeStyleKey(S style)
The AbstractPlotter implementation returns null.
|
getCoordGroup, getPlotterIcon, getPlotterName, hasReports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStyle, getPlotterDescription, getStyleKeys
public static final ConfigKey<Combiner> XCOMBINER_KEY
public static final ConfigKey<Combiner> YCOMBINER_KEY
public static final ReportKey<double[]> XS_REPKEY
public static final ReportKey<double[]> YS_REPKEY
public PlotLayer createLayer(DataGeom geom, DataSpec dataSpec, CombineArrayPlotter.CombineArrayStyle 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 the
CoordGroup.getBasicPositionCount()
or
CoordGroup.getExtraPositionCount()
method from this plotter's CoordGroup return 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 spacedataSpec
- specifies the data required for the plotstyle
- data style as obtained from createStyle
public Object getRangeStyleKey(S style)
AbstractPlotter
getRangeStyleKey
in interface Plotter<S extends CombineArrayPlotter.CombineArrayStyle>
getRangeStyleKey
in class AbstractPlotter<S extends CombineArrayPlotter.CombineArrayStyle>
style
- plot style to assessCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.