|
||||||||||
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.Colorize
public class Colorize
Fades the color of an object to a new color over time.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Colorize(java.awt.Color color,
float speed)
The Colorize action will only influence the fill colour. |
|
Colorize(java.awt.Color color,
float speed,
boolean fill,
boolean stroke)
The Colorize action is applied to the given glyph colour component (i.e. |
|
Colorize(java.awt.Color colorFill,
float speedFill,
java.awt.Color colorStroke,
float speedStroke)
The Colorize action is applied to the fill and the stroke colours, according to the given values. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Default behave method for single objects. |
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 Colorize(java.awt.Color color, float speed)
This constructor is kept for code consistency with code that was using Colorize prior to the implementation of the stroke property.
color
- The target colorspeed
- The speed factor at which the colorization is appliedpublic Colorize(java.awt.Color color, float speed, boolean fill, boolean stroke)
color
- The target colorspeed
- The speed factor at which the colorization is appliedfill
- Indicates if the action has to be processed on the fillstroke
- Indicates if the action has to be processed on the strokepublic Colorize(java.awt.Color colorFill, float speedFill, java.awt.Color colorStroke, float speedStroke)
colorFill
- The target color of the fillspeedFill
- The colorization speed for the fillcolorStroke
- The target color of the strokespeedStroke
- The colorization speed for the strokeMethod Detail |
---|
public Action.ActionResult behave(TextObject to)
AbstractAction
This method does nothing; it should be overriden by subclasses if they wish to support actions on single objects.
Trying to call this method on an Action which doesn't override it will throw an UnsupportedActionException.
behave
in interface Action
behave
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |