-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnimator.java
More file actions
83 lines (69 loc) · 2.01 KB
/
Animator.java
File metadata and controls
83 lines (69 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*******************************************************************************************
* fpstiming_tree
* Copyright (c) 2014-2017 National University of Colombia, https://github.com/remixlab
* @author Jean Pierre Charalambos, http://otrolado.info/
*
* All rights reserved. Library that eases the creation of interactive
* scenes, released under the terms of the GNU Public License v3.0
* which is available at http://www.gnu.org/licenses/gpl.html
**************************************************************************************/
package remixlab.fpstiming;
/**
* Interface defining the behavior animated objects should implement.
*/
public interface Animator {
/**
* Main call back animated method.
*/
void animate();
/**
* Returns whether or not the animated method is defined externally, as when register it
* through reflection.
*/
boolean invokeAnimationHandler();
/**
* Returns the animation period in milliseconds.
*/
long animationPeriod();
/**
* Sets the animation period in milliseconds.
*/
void setAnimationPeriod(long period);
/**
* Sets the animation period in milliseconds and restarts the animation according to
* {@code restart}.
*/
void setAnimationPeriod(long period, boolean restart);
/**
* Stops the animation.
*/
void stopAnimation();
/**
* Starts the animation executing periodically the animated call back method.
*/
void startAnimation();
/**
* Simply calls {@link #stopAnimation()} and then {@link #startAnimation()}.
*/
void restartAnimation();
/**
* Starts or stops the animation according to {@link #animationStarted()}.
*/
void toggleAnimation();
/**
* Returns {@code true} if animation was started and {@code false} otherwise.
*/
boolean animationStarted();
/**
* Sets the timing handler.
*/
void setTimingHandler(TimingHandler h);
/**
* Returns the timing handler.
*/
TimingHandler timingHandler();
/**
* Returns the sequential timer.
*/
SeqTimer timer();
}