public class TranslatedPixellator extends Object implements Pixellator
Constructor and Description |
---|
TranslatedPixellator(Pixellator base,
int x,
int y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 TranslatedPixellator(Pixellator base, int x, int y)
base
- base pixellatorx
- distance to translate in X directiony
- distance to translate in Y directionpublic 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
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.