|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.effects.ClipDecorator
public class ClipDecorator
Decorator that adds a rectangular region to the current clip.
Constructor Summary | |
---|---|
ClipDecorator()
|
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
int |
getHeight()
|
Point |
getOrigin()
|
Dimensions |
getSize()
|
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
Graphics2D |
prepare(Component component,
Graphics2D graphics)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
setHeight(int height)
|
void |
setOrigin(int x,
int y)
|
void |
setSize(int width,
int height)
|
void |
setWidth(int width)
|
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 ClipDecorator()
Method Detail |
---|
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public void setOrigin(int x, int y)
public Point getOrigin()
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public void setSize(int width, int height)
public Dimensions getSize()
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 |