|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.effects.SaturationDecorator
public class SaturationDecorator
Decorator that modifies the color saturation of a component.
Constructor Summary | |
---|---|
SaturationDecorator()
|
|
SaturationDecorator(float multiplier)
|
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
float |
getMultiplier()
|
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
Graphics2D |
prepare(Component component,
Graphics2D graphicsArgument)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
setMultiplier(float multiplier)
|
void |
setMultiplier(Number multiplier)
|
void |
update()
Adjusts the saturation of the component image and draws the resulting image using the component's graphics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaturationDecorator()
public SaturationDecorator(float multiplier)
Method Detail |
---|
public float getMultiplier()
public void setMultiplier(float multiplier)
public void setMultiplier(Number multiplier)
public Graphics2D prepare(Component component, Graphics2D graphicsArgument)
Decorator
Component.paint(Graphics2D)
; decorators are called in
descending order.
prepare
in interface Decorator
public void update()
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 |