Statistics
| Revision:

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

History | View | Annotate | Download (1.52 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 AnimationKeyFrameInterval implements IAnimationTimeInterval {
9

    
10
        private List KeyFrameList;
11

    
12
        private double initialTime = 0;
13

    
14
        private double endTime = 1;
15

    
16
        private double intervalTime = endTime - initialTime;
17

    
18
        public List getKeyFrameList() {
19
                return KeyFrameList;
20
        }
21

    
22
        public void setKeyFrameList(List keyFrameList) {
23
                KeyFrameList = keyFrameList;
24
        }
25

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

    
30
        public double getInitialTime() {
31
                return 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 KFL = this.KeyFrameList;
55
                if (KFL !=null) {
56
                        result = "Mostrando lista de KeyFrames del intervalo Tini:"
57
                                + this.getInitialTime() + " Tend" + this.getEndTime();
58
                        for (Iterator iter = KFL.iterator(); iter.hasNext();) {
59
                                Object element = (Object) iter.next();
60
                                result += "\n" + element;
61
                        }
62
                } else {
63
                        result = "Lista de key frame vacia";
64
                }
65
                return result;
66
        }
67

    
68
        public void apply(double tini, double tend, IAnimationType animationType, Object animated) {
69
                // TODO Auto-generated method stub
70
        }
71
}