Package org.apache.pivot.wtk.effects
Class ClipDecorator
- java.lang.Object
-
- org.apache.pivot.wtk.effects.ClipDecorator
-
-
Constructor Summary
Constructors Constructor Description ClipDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bounds
getBounds(Component component)
Returns the bounding area of the decorator.int
getHeight()
Point
getOrigin()
Dimensions
getSize()
int
getWidth()
int
getX()
int
getY()
java.awt.Graphics2D
prepare(Component component, java.awt.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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pivot.wtk.effects.Decorator
getTransform, update
-
-
-
-
Method Detail
-
getX
public int getX()
-
setX
public void setX(int x)
-
getY
public int getY()
-
setY
public void setY(int y)
-
setOrigin
public void setOrigin(int x, int y)
-
getOrigin
public Point getOrigin()
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
setSize
public void setSize(int width, int height)
-
getSize
public Dimensions getSize()
-
prepare
public java.awt.Graphics2D prepare(Component component, java.awt.Graphics2D graphics)
Description copied from interface:Decorator
Prepares the graphics context into which the component or prior decorator will paint. This method is called immediately prior toComponent.paint(Graphics2D)
; decorators are called in descending order.
-
-