Revision 15418 import/ext3D/branches/ext3D_v1.1/libAnimation/src/com/iver/cit/gvsig/animation/test/KeyFrame2D.java

View differences:

KeyFrame2D.java
3 3
import java.util.List;
4 4

  
5 5
import com.iver.cit.gvsig.animation.keyframe.IKeyFrame;
6
import com.iver.cit.gvsig.project.ProjectExtent;
6 7
import com.iver.utiles.XMLEntity;
7 8

  
8 9
public class KeyFrame2D implements IKeyFrame {
......
10 11
	private String name;
11 12
	private double time;
12 13

  
14
	ProjectExtent projectExtent = null;
15
	private Object extend;
16

  
13 17
	public void Apply(double Tini) {
14 18
		// TODO Auto-generated method stub
15
		
19

  
16 20
	}
17 21

  
18 22
	public void CapturesProperties() {
19 23
		// TODO Auto-generated method stub
20
		
24

  
21 25
	}
22 26

  
27
	public void CapturesProperties(ProjectExtent projectExtent) {
28
		this.projectExtent = projectExtent;
29

  
30
	}
31

  
23 32
	public String getName() {
24 33
		// TODO Auto-generated method stub
25 34
		return this.name;
......
32 41

  
33 42
	public void setName(String name) {
34 43
		this.name = name;
35
		
44

  
36 45
	}
37 46

  
38 47
	public void setPropertiesList(List list) {
39 48
		// TODO Auto-generated method stub
40
		
49

  
41 50
	}
42
	
51

  
43 52
	public String toString() {
44 53
		String result;
45
		result= "Name: " + this.getName();
54
		result = " keyframe2D:\n";
55
		result += " tiempo: " + this.time;
56
		result += " nombre del extent: " + this.projectExtent.getDescription();
57

  
58
		// result= "Name: " + this.getName();
46 59
		return result;
47 60
	}
48 61

  
49 62
	public void Interpolate(Object p1, Object p2, double time) {
50 63
		// TODO Auto-generated method stub
51
		
52 64
	}
53 65

  
54 66
	public Object getAnimatedObject() {
55 67
		// TODO Auto-generated method stub
56
		return null;
68
		return projectExtent;
57 69
	}
70
	public void setAnimatedObject(Object object) {
71
		this.projectExtent = (ProjectExtent) object;
72
	}
58 73

  
59 74
	public double getTime() {
60 75
		return time;
......
64 79
		this.time = time;
65 80
	}
66 81

  
67
	
68 82
	public String getClassName() {
69 83
		// TODO Auto-generated method stub
70 84
		return null;
71 85
	}
72 86

  
73
	
74 87
	public XMLEntity getXMLEntity() {
75 88
		// TODO Auto-generated method stub
76 89
		return null;
77 90
	}
78 91

  
79
	
80 92
	public void setXMLEntity(XMLEntity xml) {
81 93
		// TODO Auto-generated method stub
82 94
		
83 95
	}
84
	
85 96

  
86

  
87 97
}

Also available in: Unified diff