Constructor and Description |
---|
WrapperPlotLayer(PlotLayer base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Drawing |
createDrawing(Surface surface,
Map<AuxScale,Span> auxSpans,
PaperType paperType)
Creates a drawing from this layer that can contribute to
a user-visible plot.
|
void |
extendCoordinateRanges(Range[] ranges,
boolean[] logFlags,
DataStore dataStore)
Gives this layer a chance to adjust the coordinate ranges
assembled during data ranging.
|
Map<AuxScale,AuxReader> |
getAuxRangers()
Returns a map indicating what additional ranging needs to be done on
the input data before this layer can be drawn.
|
DataGeom |
getDataGeom()
Returns the data geometry used by this layer.
|
DataSpec |
getDataSpec()
Returns the data spec that defines the data used by this layer.
|
LayerOpt |
getOpt()
Returns an object that describes some facts about how this layer
draws itself used for rendering.
|
Plotter<?> |
getPlotter()
Returns the plotter that generated this layer.
|
Style |
getStyle()
Returns the plot style used by this layer.
|
public WrapperPlotLayer(PlotLayer base)
base
- base instancepublic Plotter<?> getPlotter()
PlotLayer
getPlotter
in interface PlotLayer
public Style getStyle()
PlotLayer
public DataGeom getDataGeom()
PlotLayer
getDataGeom
in interface PlotLayer
public DataSpec getDataSpec()
PlotLayer
getDataSpec
in interface PlotLayer
public void extendCoordinateRanges(Range[] ranges, boolean[] logFlags, DataStore dataStore)
PlotLayer
surface.getDataDimCount
elements).
If this layer needs to adjust these ranges beyond what is implied
by the result of getDataGeom
, it may be done here.
The implementation may or may not need to acquire
a tuple sequence from the supplied dataStore
.
An array of flags indicating whether each range corresponds to
a logarithmic axis is also supplied (same number of eements as
ranges
). This may or may not make physical sense
for a given case - if in doubt, false elements are given.
In many cases (especially for point-plotting type layers) the implementation of this method will be a no-operation.
extendCoordinateRanges
in interface PlotLayer
ranges
- array of data space dimension ranges, may be adjustedlogFlags
- array of scaling flags (false=linear, true=log)
corresponding to ranges
arraydataStore
- data storage objectpublic Map<AuxScale,AuxReader> getAuxRangers()
PlotLayer
Note that ranging of the plot surface axes themselves is handled elsewhere.
getAuxRangers
in interface PlotLayer
public LayerOpt getOpt()
PlotLayer
public Drawing createDrawing(Surface surface, Map<AuxScale,Span> auxSpans, PaperType paperType)
PlotLayer
auxSpans
parameter is a map that must contain
a Span object for (at least) every scale returned as a
key of the map returned by PlotLayer.getAuxRangers()
.
If this layer is unable to draw to the given paper type,
an unchecked exception may be thrown. In general it's up
to the plotting system to ensure that layers are only painted
on suitable paper types. This logic is in PlotType
.
createDrawing
in interface PlotLayer
surface
- plot surfaceauxSpans
- range informationpaperType
- rendering objectCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.