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)
BooleanMask2Dmask - BooleanMask2D to iteratepublic int getMinX()
public int getMaxX()
public int getMinY()
public int getMaxY()
public void reset()
Position2DIteratorreset in interface Position2DIteratorpublic void next()
Position2DIteratornext in interface Position2DIteratorpublic boolean done()
Position2DIteratordone in interface Position2DIteratorpublic java.awt.geom.Point2D get()
get in interface Position2DIteratorpublic int getX()
getX in interface Position2DIteratorpublic int getY()
getY in interface Position2DIterator