gvsig-3d / org.gvsig.animation3d / trunk / org.gvsig.animation3d / org.gvsig.animation3d.swing / org.gvsig.animation3d.swing.api / src / main / java / org / gvsig / animation3d / swing / api / Animator.java @ 687
History | View | Annotate | Download (1.06 KB)
1 |
package org.gvsig.animation3d.swing.api; |
---|---|
2 |
|
3 |
/**
|
4 |
*
|
5 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
6 |
*
|
7 |
*/
|
8 |
public interface Animator { |
9 |
|
10 |
/**
|
11 |
* Iterates to the next value. The implementation is expected to apply that
|
12 |
* next value to the property
|
13 |
* it is attached to.
|
14 |
*/
|
15 |
void next();
|
16 |
|
17 |
/**
|
18 |
* Starts the <code>Animator</code>. The implementation should return
|
19 |
* <code>true</code> from <code>hasNext</code>
|
20 |
*/
|
21 |
void start();
|
22 |
|
23 |
/**
|
24 |
* Stops the <code>Animator</code>. The implementation should return
|
25 |
* <code>false</code> from <code>hasNext</code>
|
26 |
*/
|
27 |
void stop();
|
28 |
|
29 |
/**
|
30 |
* Returns <code>true</code> if the <code>Animator</code> has more elements.
|
31 |
*
|
32 |
* @return <code>true</code> if the <code>Animator</code> has more elements.
|
33 |
*/
|
34 |
boolean hasNext();
|
35 |
|
36 |
/**
|
37 |
* Set the value of the attached property to the value associated with this
|
38 |
* interpolant value.
|
39 |
*
|
40 |
* @param interpolant
|
41 |
* A value between 0 and 1.
|
42 |
*/
|
43 |
void set(double interpolant); |
44 |
} |