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 @ 684
History | View | Annotate | Download (1008 Bytes)
1 |
package org.gvsig.animation3d.swing.api; |
---|---|
2 |
|
3 |
public interface Animator { |
4 |
|
5 |
/**
|
6 |
* Iterates to the next value. The implementation is expected to apply that
|
7 |
* next value to the property
|
8 |
* it is attached to.
|
9 |
*/
|
10 |
void next();
|
11 |
|
12 |
/**
|
13 |
* Starts the <code>Animator</code>. The implemenation should return
|
14 |
* <code>true</code> from <code>hasNext</code>
|
15 |
*/
|
16 |
void start();
|
17 |
|
18 |
/**
|
19 |
* Stops the <code>Animator</code>. The implmenentation should return
|
20 |
* <code>false</code> from <code>hasNext</code>
|
21 |
*/
|
22 |
void stop();
|
23 |
|
24 |
/**
|
25 |
* Returns <code>true</code> if the <code>Animator</code> has more elements.
|
26 |
*
|
27 |
* @return <code>true</code> if the <code>Animator</code> has more elements.
|
28 |
*/
|
29 |
boolean hasNext();
|
30 |
|
31 |
/**
|
32 |
* Set the value of the attached property to the value associated with this
|
33 |
* interpolant value.
|
34 |
*
|
35 |
* @param interpolant
|
36 |
* A value between 0 and 1.
|
37 |
*/
|
38 |
void set(double interpolant); |
39 |
} |