Class AbstractPlotLayer
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.AbstractPlotLayer
- All Implemented Interfaces:
PlotLayer
Partial PlotLayer implementation.
This implementation just supplies straightforward implementations of
the interface accessor methods.
- Since:
- 15 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
extendCoordinateRanges
(Range[] ranges, boolean[] logFlags, DataStore dataStore) This implementation does nothing.This implementation returns a new empty map.Returns the data geometry used by this layer.Returns the data spec that defines the data used by this layer.getOpt()
Returns an object that describes some facts about how this layer draws itself used for rendering.Plotter
<?> Returns the plotter that generated this layer.getStyle()
Returns the plot style used by this layer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.starlink.ttools.plot2.PlotLayer
createDrawing
-
Constructor Details
-
AbstractPlotLayer
protected AbstractPlotLayer(Plotter<?> plotter, DataGeom geom, DataSpec dataSpec, Style style, LayerOpt opt) Constructor.- Parameters:
plotter
- plotter that created this layergeom
- defines data spacedataSpec
- required data valuesstyle
- plotting styleopt
- layer optimisation option
-
-
Method Details
-
getPlotter
Description copied from interface:PlotLayer
Returns the plotter that generated this layer. Used to help determine whether this layer is the same as another one.- Specified by:
getPlotter
in interfacePlotLayer
- Returns:
- parent plotter
-
getDataGeom
Description copied from interface:PlotLayer
Returns the data geometry used by this layer. This can be used in conjunction with the DataSpec to determine the base positions in data space of what has been plotted. Depending on the nature of the returned object, these positions may be actual points in the data space, or some higher-dimensional object. If null is returned, no such information is available.- Specified by:
getDataGeom
in interfacePlotLayer
- Returns:
- data geom, or null
-
extendCoordinateRanges
This implementation does nothing.- Specified by:
extendCoordinateRanges
in interfacePlotLayer
- Parameters:
ranges
- array of data space dimension ranges, may be adjustedlogFlags
- array of scaling flags (false=linear, true=log) corresponding toranges
arraydataStore
- data storage object
-
getDataSpec
Description copied from interface:PlotLayer
Returns the data spec that defines the data used by this layer. May be null if no tabular data is required.- Specified by:
getDataSpec
in interfacePlotLayer
- Returns:
- data spec, or null
-
getStyle
Description copied from interface:PlotLayer
Returns the plot style used by this layer. -
getOpt
Description copied from interface:PlotLayer
Returns an object that describes some facts about how this layer draws itself used for rendering. -
getAuxRangers
This implementation returns a new empty map. Subclasses overriding this implementation may call the superclass method, modify the resulting map, and pass it on.- Specified by:
getAuxRangers
in interfacePlotLayer
- Returns:
- range scales required for plot
-