Statistics
| Revision:

svn-gvsig-desktop / import / ext3D / branches / ext3D_v1.1 / libAnimation / src / com / iver / cit / gvsig / animation / interval / AnimationFunctionInterval.java @ 15349

History | View | Annotate | Download (1.54 KB)

1
package com.iver.cit.gvsig.animation.interval;
2

    
3
import java.util.Iterator;
4
import java.util.List;
5

    
6
import com.iver.cit.gvsig.animation.IAnimationType;
7

    
8
public class AnimationFunctionInterval implements IAnimationTimeInterval {
9

    
10
        private List animationFuncionList;
11

    
12
        private double initialTime = 0;
13

    
14
        private double endTime = 1;
15

    
16
        private double intervalTime = endTime - initialTime;
17

    
18
        public List getAnimationFuncionList() {
19
                return animationFuncionList;
20
        }
21

    
22
        public void setAnimationFuncionList(List animationFuncionList) {
23
                this.animationFuncionList = animationFuncionList;
24
        }
25

    
26
        public double getEndTime() {
27
                return this.endTime;
28
        }
29

    
30
        public double getInitialTime() {
31
                return this.initialTime;
32
        }
33

    
34
        public double getIntervalTime() {
35
                return endTime - initialTime;
36
        }
37

    
38
        public void setEndTime(double time) {
39
                this.endTime = time;
40

    
41
        }
42

    
43
        public void setInitialTime(double time) {
44
                this.initialTime = time;
45
        }
46

    
47
        public void setIntervalTime(double time) {
48
                this.intervalTime = time;
49
        }
50

    
51
        public String toString() {
52

    
53
                String result;
54
                List AFL = this.animationFuncionList;
55
                result = "Mostrando lista de funciones de animacion del intervalo Tini:"
56
                                + this.getInitialTime() + " Tend" + this.getEndTime();
57
                for (Iterator iter = AFL.iterator(); iter.hasNext();) {
58
                        Object element = (Object) iter.next();
59
                        result += "\n" + element;
60
                }
61
                return result;
62
        }
63

    
64
        public void apply(double tini, double tend, IAnimationType animationType,
65
                        Object animated) {
66
                // TODO Auto-generated method stub
67

    
68
        }
69

    
70
}