|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.effects.RotationDecorator
public class RotationDecorator
Decorator that rotates a component about its center.
Constructor Summary | |
---|---|
RotationDecorator()
Creates a new rotation decorator with the default theta value (zero). |
|
RotationDecorator(double theta)
Creates a new rotation decorator with the specified theta value. |
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
double |
getTheta()
Gets the rotation angle, in radians. |
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
Graphics2D |
prepare(Component component,
Graphics2D graphics)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
setTheta(double theta)
Sets the rotation angle, in radians. |
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 RotationDecorator()
public RotationDecorator(double theta)
theta
- The rotation angle, in radians.Method Detail |
---|
public double getTheta()
public void setTheta(double theta)
public Graphics2D prepare(Component component, Graphics2D graphics)
Component.paint(Graphics2D)
; decorators are called in
descending order.
prepare
in interface Decorator
public void update()
Component.paint(Graphics2D)
; decorators are called in
ascending order.
update
in interface Decorator
public Bounds getBounds(Component component)
getBounds
in interface Decorator
public AffineTransform getTransform(Component component)
getTransform
in interface Decorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |