Package uk.ac.starlink.ttools.plot
Class PlotDataPointIterator
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.PointIterator
-
- uk.ac.starlink.ttools.plot.PlotDataPointIterator
-
public class PlotDataPointIterator extends PointIterator
PointIterator implementation based on aPlotData
object.- Since:
- 9 Apr 2008
- Author:
- Mark Taylor
-
-
Field Summary
-
Fields inherited from class uk.ac.starlink.ttools.plot.PointIterator
EMPTY
-
-
Constructor Summary
Constructors Constructor Description PlotDataPointIterator(PlotData data, PointPlacer placer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]
nextPoint()
Returns a triple giving point index, screen X coordinate and screen Y coordinate.-
Methods inherited from class uk.ac.starlink.ttools.plot.PointIterator
getAllPoints, getClosestPoint, getContainedPoints, getIndex, getX, getY, readNextPoint
-
-
-
-
Constructor Detail
-
PlotDataPointIterator
public PlotDataPointIterator(PlotData data, PointPlacer placer)
Constructor.- Parameters:
data
- object supplying point data
-
-
Method Detail
-
nextPoint
protected int[] nextPoint()
Description copied from class:PointIterator
Returns a triple giving point index, screen X coordinate and screen Y coordinate. Returns null if there are no more points. It is permissible to return the sameint[]
array with different contents each time. Invoked byPointIterator.readNextPoint()
.- Specified by:
nextPoint
in classPointIterator
- Returns:
- ip, xp, yp triple
-
-