Package uk.ac.starlink.ttools.plot
Class PlotDataPointIterator
java.lang.Object
uk.ac.starlink.ttools.plot.PointIterator
uk.ac.starlink.ttools.plot.PlotDataPointIterator
PointIterator implementation based on a
PlotData
object.- Since:
- 9 Apr 2008
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class uk.ac.starlink.ttools.plot.PointIterator
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
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 Details
-
PlotDataPointIterator
Constructor.- Parameters:
data
- object supplying point data
-
-
Method Details
-
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
-