Revision 15445 import/ext3D/branches/ext3D_v1.1/libAnimation/src/com/iver/cit/gvsig/animation/interval/AnimationFunctionInterval.java
AnimationFunctionInterval.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
private double intervalTime = endTime - initialTime; |
17 | 17 |
|
18 |
private String className; |
|
19 |
|
|
18 | 20 |
public AnimationFunction getAnimationFuncionItem() { |
19 | 21 |
return animationFunctionItem; |
20 | 22 |
} |
... | ... | |
67 | 69 |
public void apply(double tini, double tend, IAnimationType animationType, |
68 | 70 |
Object animated) { |
69 | 71 |
// TODO Auto-generated method stub |
72 |
} |
|
70 | 73 |
|
74 |
public String getClassName() { |
|
75 |
// TODO Auto-generated method stub |
|
76 |
return this.getClass().getName(); |
|
71 | 77 |
} |
78 |
|
|
72 | 79 |
|
73 |
|
|
74 | 80 |
public XMLEntity getXMLEntity() { |
75 | 81 |
// TODO Auto-generated method stub |
76 | 82 |
XMLEntity xml = new XMLEntity(); |
77 |
xml.putProperty("className", this.getClassName()); |
|
78 |
|
|
83 |
xml.putProperty("class_name", this.getClassName()); |
|
79 | 84 |
xml.putProperty("begin_time", initialTime); |
80 | 85 |
xml.putProperty("end_time", endTime); |
81 | 86 |
xml.putProperty("interval_time", intervalTime); |
82 |
this.animationFunctionItem.getXMLEntity(); |
|
87 |
//this.animationFunctionItem.getXMLEntity();
|
|
83 | 88 |
|
84 |
return null;
|
|
89 |
return xml;
|
|
85 | 90 |
} |
86 | 91 |
|
87 | 92 |
|
88 | 93 |
public void setXMLEntity(XMLEntity xml) { |
89 | 94 |
// TODO Auto-generated method stub |
90 |
|
|
95 |
if (xml.contains("class_name")) |
|
96 |
className= xml.getStringProperty("class_name"); |
|
91 | 97 |
if (xml.contains("begin_time")) |
92 | 98 |
initialTime = xml.getDoubleProperty("begin_time"); |
93 | 99 |
if (xml.contains("end_time")) |
94 | 100 |
endTime = xml.getDoubleProperty("end_time"); |
95 | 101 |
if (xml.contains("interval_time")) |
96 | 102 |
intervalTime = xml.getDoubleProperty("interval_time"); |
97 |
this.animationFunctionItem.setXMLEntity(xml); |
|
103 |
//this.animationFunctionItem.setXMLEntity(xml);
|
|
98 | 104 |
|
99 |
|
|
100 | 105 |
} |
101 |
|
|
102 |
public String getClassName() { |
|
103 |
// TODO Auto-generated method stub |
|
104 |
return this.getClass().getName(); |
|
105 |
} |
|
106 |
|
|
107 | 106 |
} |
Also available in: Unified diff