|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.nexttext.behaviour.AbstractAction
net.nexttext.behaviour.control.Timer
public class Timer
A Timer executes a given action for an absolute period of time given in seconds.
Delay| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
|---|
Action.ActionResult |
| Constructor Summary | |
|---|---|
Timer(Action action,
float duration)
Creates a Timer for the given action. |
|
| Method Summary | |
|---|---|
Action.ActionResult |
behave(TextObject to)
Default behave method for single objects. |
void |
complete(TextObject to)
Default implementation which removes state information for the object. |
java.util.Map<java.lang.String,Property> |
getRequiredProperties()
The properties that this action requires on a TextObject. |
| Methods inherited from class net.nexttext.behaviour.AbstractAction |
|---|
behave, behave, getDisplayName, makeBehaviour, properties, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer(Action action,
float duration)
duration - In seconds| Method Detail |
|---|
public Action.ActionResult behave(TextObject to)
AbstractActionThis 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 Actionbehave in class AbstractActionpublic java.util.Map<java.lang.String,Property> getRequiredProperties()
AbstractActionRight now this method always returns an empty map, since basic Actions should be restricted to use only the core set of TextObject properties.
If a subclass of Action requires a set of additional properties then it should override this method and return the appropriate Map containing the property objects.
This method is required by the Action interface.
getRequiredProperties in interface ActiongetRequiredProperties in class AbstractActionpublic void complete(TextObject to)
AbstractAction
complete in interface Actioncomplete in class AbstractAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||