Class FloatingCoordAuxReader
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.FloatingCoordAuxReader
-
-
Constructor Summary
Constructors Constructor Description FloatingCoordAuxReader(FloatingCoord coord, int icol, DataGeom geom, boolean visibleOnly)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustAuxRange(Surface surface, DataSpec dataSpec, DataStore dataStore, java.lang.Object[] plans, Range range)
May use the supplied data specification to update (usually extend) the given range.uk.ac.starlink.table.ValueInfo
getAxisInfo(DataSpec dataSpec)
Attempts to provide information suitable for labelling the axis corresponding to the values ranged by this reader.int
getCoordIndex()
Returns the DataSpec index for the coordinate whose value is used by this reader.
-
-
-
Constructor Detail
-
FloatingCoordAuxReader
public FloatingCoordAuxReader(FloatingCoord coord, int icol, DataGeom geom, boolean visibleOnly)
Constructor.- Parameters:
coord
- coordinate readericol
- column index in tuple sequence corresponding to valuegeom
- converts data to graphics coordinatesvisibleOnly
- true to include only points visible in the current plot bounds, false for all potentially plottable points
-
-
Method Detail
-
getCoordIndex
public int getCoordIndex()
Description copied from interface:AuxReader
Returns the DataSpec index for the coordinate whose value is used by this reader. This is provided on a best-efforts basis; if no single coordinate fits this description, then -1 may be returned.- Specified by:
getCoordIndex
in interfaceAuxReader
- Returns:
- DataSpec coord index for auxiliary coordinate being ranged, or -1
-
getAxisInfo
public uk.ac.starlink.table.ValueInfo getAxisInfo(DataSpec dataSpec)
Description copied from interface:AuxReader
Attempts to provide information suitable for labelling the axis corresponding to the values ranged by this reader.- Specified by:
getAxisInfo
in interfaceAuxReader
- Parameters:
dataSpec
- data specification- Returns:
- info corresponding to this reader's scale, or null if none known
-
adjustAuxRange
public void adjustAuxRange(Surface surface, DataSpec dataSpec, DataStore dataStore, java.lang.Object[] plans, Range range)
Description copied from interface:AuxReader
May use the supplied data specification to update (usually extend) the given range. If available an array of plan objects may be supplied as well. The implementation may be able to make use of these to improve efficiency of the ranging (perhaps to avoid a data scan).- Specified by:
adjustAuxRange
in interfaceAuxReader
- Parameters:
surface
- plot data destination surfacedataSpec
- specification for datadataStore
- data storage objectplans
- array of available plan objects; may be emptyrange
- range object to be updated with range information
-
-