Timer repeating an action.
More...
|
void | fire () |
| Timer elapsed.
|
|
ActionListener | getAction () |
| Action to repeat.
|
|
int | getModifiers () |
| Modifiers for sending event.
|
|
float | getRepeatDelay () |
| Repeat delay in seconds.
|
|
Object | getSource () |
| Source sending event.
|
|
RepeatActionTimer | new (ActionListener action, Object source, int modifiers) |
| Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.
|
|
RepeatActionTimer | new (ActionListener action, Object source, int modifiers, float initialDelay, float repeatDelay) |
| Create repeat action timer.
|
|
void | sendEvent () |
| Send event.
|
|
void | setAction (ActionListener action) |
| Set action to repeat.
|
|
void | setModifiers (int modifiers) |
| Set modifiers for sending event.
|
|
void | setRepeatDelay (float delay) |
| Set repeat delay in seconds.
|
|
void | setSource (Object source) |
| Set source sending event.
|
|
Timer repeating an action.
◆ fire()
void Dragengine.Gui.RepeatActionTimer.fire |
( |
| ) |
|
◆ getAction()
ActionListener Dragengine.Gui.RepeatActionTimer.getAction |
( |
| ) |
|
◆ getModifiers()
int Dragengine.Gui.RepeatActionTimer.getModifiers |
( |
| ) |
|
Modifiers for sending event.
◆ getRepeatDelay()
float Dragengine.Gui.RepeatActionTimer.getRepeatDelay |
( |
| ) |
|
◆ getSource()
Object Dragengine.Gui.RepeatActionTimer.getSource |
( |
| ) |
|
◆ new() [1/2]
RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new |
( |
ActionListener |
action, |
|
|
Object |
source, |
|
|
int |
modifiers |
|
) |
| |
Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.
- Parameters
-
action | Action to repeat. |
source | Source sending the action. |
modifiers | Modifiers for sending event. |
◆ new() [2/2]
RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new |
( |
ActionListener |
action, |
|
|
Object |
source, |
|
|
int |
modifiers, |
|
|
float |
initialDelay, |
|
|
float |
repeatDelay |
|
) |
| |
Create repeat action timer.
- Parameters
-
action | Action to repeat. |
source | Source sending the action. |
modifiers | Modifiers for sending event. |
initialDelay | Delay before repeating actions in seconds. |
repeatDelay | Delay between repeated actions in seconds. |
◆ sendEvent()
void Dragengine.Gui.RepeatActionTimer.sendEvent |
( |
| ) |
|
◆ setAction()
void Dragengine.Gui.RepeatActionTimer.setAction |
( |
ActionListener |
action | ) |
|
◆ setModifiers()
void Dragengine.Gui.RepeatActionTimer.setModifiers |
( |
int |
modifiers | ) |
|
Set modifiers for sending event.
◆ setRepeatDelay()
void Dragengine.Gui.RepeatActionTimer.setRepeatDelay |
( |
float |
delay | ) |
|
Set repeat delay in seconds.
◆ setSource()
void Dragengine.Gui.RepeatActionTimer.setSource |
( |
Object |
source | ) |
|
Set source sending event.
The documentation for this class was generated from the following file: