uk.ac.starlink.ttools.plot2.layer
Class FloatingCoordAuxReader

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.FloatingCoordAuxReader
All Implemented Interfaces:
AuxReader

public class FloatingCoordAuxReader
extends Object
implements AuxReader

AuxReader implementation that extends ranges simply by sampling a given scalar floating coordinate for all plottable points.

Since:
16 Jan 2015
Author:
Mark Taylor

Constructor Summary
FloatingCoordAuxReader(FloatingCoord coord, int icol, DataGeom geom, boolean visibleOnly)
          Constructor.
 
Method Summary
 void updateAuxRange(Surface surface, TupleSequence tseq, Range range)
          Called once for each applicable row of a tuple sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatingCoordAuxReader

public FloatingCoordAuxReader(FloatingCoord coord,
                              int icol,
                              DataGeom geom,
                              boolean visibleOnly)
Constructor.

Parameters:
coord - coordinate reader
icol - column index in tuple sequence corresponding to value
geom - converts data to graphics coordinates
visibleOnly - true to include only points visible in the current plot bounds, false for all potentially plottable points
Method Detail

updateAuxRange

public void updateAuxRange(Surface surface,
                           TupleSequence tseq,
                           Range range)
Description copied from interface: AuxReader
Called once for each applicable row of a tuple sequence. Each call may extend the given range.

Specified by:
updateAuxRange in interface AuxReader
Parameters:
surface - plot data destination surface
tseq - plot data supplier
range - range object to be updated with range information


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.