|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.effects.TranslationDecorator
public class TranslationDecorator
Decorator that translates the paint origin of its component.
Constructor Summary | |
---|---|
TranslationDecorator()
|
|
TranslationDecorator(boolean clip)
|
|
TranslationDecorator(int x,
int y,
boolean clip)
|
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
boolean |
getClip()
|
Point |
getOffset()
|
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
int |
getX()
|
int |
getY()
|
Graphics2D |
prepare(Component component,
Graphics2D graphics)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
setClip(boolean clip)
|
void |
setOffset(int x,
int y)
|
void |
setOffset(Point offset)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
update()
Updates the graphics context into which the component or prior decorator was painted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslationDecorator()
public TranslationDecorator(boolean clip)
public TranslationDecorator(int x, int y, boolean clip)
Method Detail |
---|
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public Point getOffset()
public void setOffset(Point offset)
public void setOffset(int x, int y)
public boolean getClip()
public void setClip(boolean clip)
public Graphics2D prepare(Component component, Graphics2D graphics)
Decorator
Component.paint(Graphics2D)
; decorators are called in
descending order.
prepare
in interface Decorator
public void update()
Decorator
Component.paint(Graphics2D)
; decorators are called in
ascending order.
update
in interface Decorator
public Bounds getBounds(Component component)
Decorator
getBounds
in interface Decorator
public AffineTransform getTransform(Component component)
Decorator
getTransform
in interface Decorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |