Package uk.ac.starlink.ttools.plot
Interface Pixellator
-
- All Known Implementing Classes:
BitSetPixellator
,Drawing
,PointArrayPixellator
,TranslatedPixellator
public interface Pixellator
Reusable iterator over pixel positions. Implementations will not in general be thread-safe.- Since:
- 28 Mar 2007
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Rectangle
getBounds()
Returns a copy of the bounding rectangle for this pixellator.int
getX()
Returns the X value for the current point.int
getY()
Returns the Y value for the current point.boolean
next()
Moves to the next point in the sequence.void
start()
Makes this object ready to iterate.
-
-
-
Method Detail
-
getBounds
java.awt.Rectangle getBounds()
Returns a copy of the bounding rectangle for this pixellator. All points iterated over by this object will fall within this rectangle. If this object has no points,null
may be returned.- Returns:
- bounds
-
start
void start()
Makes this object ready to iterate. Should be called before any call tonext()
.
-
next
boolean next()
Moves to the next point in the sequence. Must be called before any call togetX()
/getY()
. Returns value indicates whether there is a next point.- Returns:
- next true iff there are more points
-
getX
int getX()
Returns the X value for the current point.- Returns:
- x
-
getY
int getY()
Returns the Y value for the current point.- Returns:
- y
-
-