gvsig-3d / org.gvsig.animation3d / trunk / org.gvsig.animation3d / org.gvsig.animation3d.swing / org.gvsig.animation3d.swing.impl / src / main / java / org / gvsig / animation3d / swing / impl / DefaultWWAnimationWrapper.java @ 684
History | View | Annotate | Download (889 Bytes)
1 |
package org.gvsig.animation3d.swing.impl; |
---|---|
2 |
|
3 |
import gov.nasa.worldwind.animation.Animator; |
4 |
|
5 |
/**
|
6 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
7 |
*
|
8 |
*/
|
9 |
public class DefaultWWAnimationWrapper implements Animator { |
10 |
|
11 |
private org.gvsig.animation3d.swing.api.Animator animator;
|
12 |
|
13 |
/**
|
14 |
* @param animator
|
15 |
*/
|
16 |
public DefaultWWAnimationWrapper(org.gvsig.animation3d.swing.api.Animator animator) {
|
17 |
this.animator = animator;
|
18 |
} |
19 |
|
20 |
@Override
|
21 |
public void next() { |
22 |
this.animator.next();
|
23 |
} |
24 |
|
25 |
@Override
|
26 |
public void start() { |
27 |
this.animator.start();
|
28 |
} |
29 |
|
30 |
@Override
|
31 |
public void stop() { |
32 |
this.animator.stop();
|
33 |
} |
34 |
|
35 |
@Override
|
36 |
public boolean hasNext() { |
37 |
return this.animator.hasNext(); |
38 |
} |
39 |
|
40 |
@Override
|
41 |
public void set(double interpolant) { |
42 |
this.animator.set(interpolant);
|
43 |
} |
44 |
|
45 |
} |