Revision 15445 import/ext3D/branches/ext3D_v1.1/libAnimation/src/com/iver/cit/gvsig/animation/AnimationContainer.java
AnimationContainer.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
// IAnimationTrakc List |
15 | 15 |
public List AnimationTrackList; |
16 |
|
|
17 |
private String className; |
|
16 | 18 |
|
17 | 19 |
private static AnimationPlayer animationPlayer = new AnimationPlayer(); |
18 | 20 |
|
... | ... | |
139 | 141 |
*/ |
140 | 142 |
public XMLEntity getXMLEntity() { |
141 | 143 |
XMLEntity xml = new XMLEntity(); |
142 |
xml.putProperty("className", this.getClassName());
|
|
144 |
xml.putProperty("class_name", this.getClassName());
|
|
143 | 145 |
for (int i = 0; i < this.AnimationTrackList.size(); i++) { |
144 | 146 |
IAnimationTrack trackElement = (IAnimationTrack) this.AnimationTrackList.get(i); |
145 | 147 |
trackElement.getXMLEntity(); |
... | ... | |
151 | 153 |
* @param xml |
152 | 154 |
*/ |
153 | 155 |
public void setXMLEntity(XMLEntity xml) { |
154 |
|
|
156 |
if (xml.contains("class_name")) |
|
157 |
className = xml.getStringProperty("class_name"); |
|
155 | 158 |
for (int i = 0; i < this.AnimationTrackList.size(); i++) { |
156 | 159 |
IAnimationTrack trackElement = (IAnimationTrack) this.AnimationTrackList.get(i); |
157 | 160 |
trackElement.setXMLEntity(xml); |
Also available in: Unified diff