Statistics
| Revision:

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

History | View | Annotate | Download (1.71 KB)

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

    
3
import java.sql.Date;
4

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

    
7
public class AnimationDatedInterval implements IAnimationInterval {
8

    
9
        private Date beginDateInterval;
10

    
11
        private Date endDateInterval;
12

    
13
        public Date getBeginDateInterval() {
14
                return beginDateInterval;
15
        }
16

    
17
        public void setBeginDateInterval(Date beginDateInterval) {
18
                this.beginDateInterval = beginDateInterval;
19
        }
20

    
21
        public Date getEndDateInterval() {
22
                return endDateInterval;
23
        }
24

    
25
        public void setEndDateInterval(Date endDateInterval) {
26
                this.endDateInterval = endDateInterval;
27
        }
28

    
29
        public String toString() {
30
                String result = "Intervalo de " + this.beginDateInterval + " a "
31
                                + this.endDateInterval;
32
                return result;
33
        }
34

    
35
        public double getEndTime() {
36
                return this.endDateInterval.getTime();
37
        }
38

    
39
        public double getInitialTime() {
40
                return this.beginDateInterval.getTime();
41
        }
42

    
43
        public double getIntervalTime() {
44
                return (this.endDateInterval.getTime() - this.beginDateInterval
45
                                .getTime());
46
        }
47

    
48
        public void setEndTime(double time) {
49
                this.endDateInterval.setTime((long) time);
50

    
51
        }
52

    
53
        public void setInitialTime(double time) {
54
                this.beginDateInterval.setTime((long) time);
55

    
56
        }
57

    
58
        public void setIntervalTime(double time) {
59
                // TODO generate method to calculate interval time
60

    
61
        }
62

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

    
68
        public void apply(double tini, double tend, IAnimationType animationType, Object animated) {
69
                // falta completar la funcion 
70
                System.out.println("PINTANDO OBJETO");
71
//                animationType.AppliesToObject(animated);
72
                
73
        }
74
}