|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.BitSetPixellator
public class BitSetPixellator
Pixellator built on a bit vector.
Constructor Summary | |
---|---|
BitSetPixellator(Rectangle bounds,
BitSet mask)
Constructor. |
Method Summary | |
---|---|
static BitSetPixellator |
copy(Pixellator pixer)
Creates a new pixellator with the same content as an existing one. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitSetPixellator(Rectangle bounds, 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 pixelMethod Detail |
---|
public Rectangle getBounds()
Pixellator
null
may be returned.
getBounds
in interface Pixellator
public void start()
Pixellator
Pixellator.next()
.
start
in interface Pixellator
public boolean next()
Pixellator
Pixellator.getX()
/Pixellator.getY()
. Returns value indicates whether
there is a next point.
next
in interface Pixellator
public int getX()
Pixellator
getX
in interface Pixellator
public int getY()
Pixellator
getY
in interface Pixellator
public static BitSetPixellator copy(Pixellator pixer)
getBounds
method of the input.
pixer
- pixellator to copy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |