Constructor and Description |
---|
FadeDecorator() |
FadeDecorator(float opacity) |
Modifier and Type | Method and Description |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator.
|
float |
getOpacity() |
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 |
setOpacity(float opacity) |
void |
update()
Updates the graphics context into which the component or prior
decorator was painted.
|
public FadeDecorator()
public FadeDecorator(float opacity)
public float getOpacity()
public void setOpacity(float opacity)
public Graphics2D prepare(Component component, Graphics2D graphics)
Decorator
Component.paint(Graphics2D)
; decorators are called in
descending order.public void update()
Decorator
Component.paint(Graphics2D)
; decorators are called in
ascending order.public Bounds getBounds(Component component)
Decorator
public AffineTransform getTransform(Component component)
Decorator
getTransform
in interface Decorator