Class AbstractPlotLayer
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.AbstractPlotLayer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extendCoordinateRanges(Range[] ranges, boolean[] logFlags, DataStore dataStore)
This implementation does nothing.java.util.Map<AuxScale,AuxReader>
getAuxRangers()
This implementation returns a new empty map.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.-
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 Detail
-
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 Detail
-
getPlotter
public Plotter 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
public DataGeom 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
public void extendCoordinateRanges(Range[] ranges, boolean[] logFlags, DataStore dataStore)
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
public DataSpec 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
public Style getStyle()
Description copied from interface:PlotLayer
Returns the plot style used by this layer.
-
getOpt
public LayerOpt getOpt()
Description copied from interface:PlotLayer
Returns an object that describes some facts about how this layer draws itself used for rendering.
-
getAuxRangers
public java.util.Map<AuxScale,AuxReader> 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
-
-