Pixellatorpublic class BitSetPixellator extends java.lang.Object implements Pixellator
| Constructor | Description |
|---|---|
BitSetPixellator(java.awt.Rectangle bounds,
java.util.BitSet mask) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static BitSetPixellator |
copy(Pixellator pixer) |
Creates a new pixellator with the same content as an existing one.
|
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.
|
public BitSetPixellator(java.awt.Rectangle bounds,
java.util.BitSet mask)
(x,y) of the pixellator is represented by mask index
(x-bounds.x) + bounds.width * (y-bounds.y).bounds - bounds of this pixellatormask - bit vector with a point set for each filled in pixelpublic java.awt.Rectangle getBounds()
Pixellatornull may be returned.getBounds in interface Pixellatorpublic void start()
PixellatorPixellator.next().start in interface Pixellatorpublic boolean next()
PixellatorPixellator.getX()/Pixellator.getY(). Returns value indicates whether
there is a next point.next in interface Pixellatorpublic int getX()
PixellatorgetX in interface Pixellatorpublic int getY()
PixellatorgetY in interface Pixellatorpublic static BitSetPixellator copy(Pixellator pixer)
getBounds method of the input.pixer - pixellator to copyCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.