public class BooleanMask2DIterator extends java.lang.Object implements Position2DIterator
Constructor and Description |
---|
BooleanMask2DIterator(BooleanMask2D mask)
Create a new BooleanMask2D iterator to iterate each point through the specified
BooleanMask2D |
Modifier and Type | Method and Description |
---|---|
boolean |
done()
Returns true if the iterator has no more elements.
|
java.awt.geom.Point2D |
get() |
int |
getMaxX() |
int |
getMaxY() |
int |
getMinX() |
int |
getMinY() |
int |
getX() |
int |
getY() |
void |
next()
Pass to the next element.
|
void |
reset()
Reset iterator to initial position.
|
public BooleanMask2DIterator(BooleanMask2D mask)
BooleanMask2D
mask
- BooleanMask2D to iteratepublic int getMinX()
public int getMaxX()
public int getMinY()
public int getMaxY()
public void reset()
Position2DIterator
reset
in interface Position2DIterator
public void next()
Position2DIterator
next
in interface Position2DIterator
public boolean done()
Position2DIterator
done
in interface Position2DIterator
public java.awt.geom.Point2D get()
get
in interface Position2DIterator
public int getX()
getX
in interface Position2DIterator
public int getY()
getY
in interface Position2DIterator