|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.effects.ScaleDecorator
public class ScaleDecorator
Decorator that scales the painting of a component along the X and/or Y axes.
Constructor Summary | |
---|---|
ScaleDecorator()
Creates a new ScaleDecorator with the default scaleX scaleY values of 1. |
|
ScaleDecorator(float scaleX,
float scaleY)
Creates a new ScaleDecorator with the specified scaleX and scaleY values. |
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment of the decorator. |
float |
getScaleX()
Gets the amount by which drawing operations will be scaled along the x-axis. |
float |
getScaleY()
Gets the amount by which drawing operations will be scaled along the y-axis. |
java.awt.geom.AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment of the decorator. |
java.awt.Graphics2D |
prepare(Component component,
java.awt.Graphics2D graphics)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
repaint(Component component,
int x,
int y,
int width,
int height)
|
void |
setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
Sets the horizontal alignment of the decorator. |
void |
setHorizontalAlignment(java.lang.String horizontalAlignment)
Sets the horizontal alignment of the decorator. |
void |
setScaleX(float scaleX)
Sets the amount by which drawing operations will be scaled along the x-axis. |
void |
setScaleX(java.lang.Number scaleX)
Sets the amount by which drawing operations will be scaled along the x-axis. |
void |
setScaleY(float scaleY)
Sets the amount by which drawing operations will be scaled along the y-axis. |
void |
setScaleY(java.lang.Number scaleY)
Sets the amount by which drawing operations will be scaled along the y-axis. |
void |
setVerticalAlignment(java.lang.String verticalAlignment)
Sets the vertical alignment of the decorator. |
void |
setVerticalAlignment(VerticalAlignment verticalAlignment)
Sets the vertical alignment of the decorator. |
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 ScaleDecorator()
public ScaleDecorator(float scaleX, float scaleY)
scaleX
- The amount to scale the component's x-axisscaleY
- The amount to scale the component's y-axisMethod Detail |
---|
public float getScaleX()
public void setScaleX(float scaleX)
scaleX
- The amount to scale the component's x-axispublic void setScaleX(java.lang.Number scaleX)
scaleX
- The amount to scale the component's x-axispublic float getScaleY()
public void setScaleY(float scaleY)
scaleY
- The amount to scale the component's y-axispublic void setScaleY(java.lang.Number scaleY)
scaleY
- The amount to scale the component's y-axispublic HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
horizontalAlignment
- The horizontal alignmentpublic final void setHorizontalAlignment(java.lang.String horizontalAlignment)
horizontalAlignment
- The horizontal alignmentpublic VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
verticalAlignment
- The vertical alignmentpublic final void setVerticalAlignment(java.lang.String verticalAlignment)
verticalAlignment
- The vertical alignmentpublic java.awt.Graphics2D prepare(Component component, java.awt.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 void repaint(Component component, int x, int y, int width, int height)
public Bounds getBounds(Component component)
Decorator
getBounds
in interface Decorator
public java.awt.geom.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 |