|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.standard.FadeTo
public class FadeTo
This action fades an object's color alpha component to the specified value and at a given speed.
It does not modify the object's color. Instead, see Colorize
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
FadeTo()
Default constructor. |
|
FadeTo(int fadeTo,
int speed)
Creates a FadeTo action with the parameters passed as arguments. |
|
FadeTo(int fadeTo,
int speed,
boolean fill,
boolean stroke)
Creates a FadeTo action with the parameters passed as arguments. |
|
FadeTo(int fadeToFill,
int speedFill,
int fadeToStroke,
int speedStroke)
Creates a FadeTo action with the parameters passed as arguments. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Applies the Fade action to a TextObject. |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, complete, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FadeTo()
This constructor is kept for code consistency with code that was using FadeTo prior to the implementation of the stroke property.
public FadeTo(int fadeTo, int speed)
This constructor is kept for code consistency with code that was using FadeTo prior to the implementation of the stroke property.
fadeTo
- A target alpha value in the range 0..255speed
- The fade speedpublic FadeTo(int fadeTo, int speed, boolean fill, boolean stroke)
fadeTo
- A target alpha value in the range 0..255speed
- The fade speedfill
- Indicates if the action has to be processed on the fillstroke
- Indicates if the action has to be processed on the strokepublic FadeTo(int fadeToFill, int speedFill, int fadeToStroke, int speedStroke)
fadeToFill
- A target fill color alpha value in the range 0..255speedFill
- The fill color fade speedfadeToStroke
- A target stroke color alpha value in the range 0..255speedStroke
- The stroke color fade speedMethod Detail |
---|
public Action.ActionResult behave(TextObject to)
The returned ActionResult will set complete when the alpha value has been reached, and will never return events.
behave
in interface Action
behave
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |