root / trunk / libraries / libAnimation / src / com / iver / cit / gvsig / animation / keyframe / AnimationFunction.java @ 23598
History | View | Annotate | Download (1.5 KB)
1 |
package com.iver.cit.gvsig.animation.keyframe; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import com.iver.utiles.IPersistence; |
6 |
import com.iver.utiles.XMLEntity; |
7 |
|
8 |
public class AnimationFunction implements IPersistence{ |
9 |
|
10 |
private List AnimationFunctionList; |
11 |
//private String className;
|
12 |
|
13 |
//private AnimationFunction animationFunctionItem;
|
14 |
|
15 |
public List getAnimationFuntionList() { |
16 |
return AnimationFunctionList;
|
17 |
} |
18 |
|
19 |
public void setAnimationFuntionList(List animationFuntionList) { |
20 |
AnimationFunctionList = animationFuntionList; |
21 |
} |
22 |
|
23 |
public String toString() { |
24 |
|
25 |
String result = ""; |
26 |
|
27 |
return result;
|
28 |
} |
29 |
|
30 |
|
31 |
public String getClassName() { |
32 |
return this.getClass().getName(); |
33 |
} |
34 |
|
35 |
|
36 |
public XMLEntity getXMLEntity() {
|
37 |
XMLEntity xml = new XMLEntity();
|
38 |
|
39 |
xml.putProperty("class_name", this.getClassName()); |
40 |
for (int i = 0; i < this.AnimationFunctionList.size(); i++) { |
41 |
AnimationFunction animationFunctionItem = (AnimationFunction) this.AnimationFunctionList.get(i);
|
42 |
xml.addChild(((IPersistence)animationFunctionItem).getXMLEntity()); |
43 |
return xml;//provisional |
44 |
} |
45 |
return xml;
|
46 |
} |
47 |
|
48 |
|
49 |
public void setXMLEntity(XMLEntity xml) { |
50 |
// TODO Auto-generated method stub
|
51 |
//
|
52 |
// if (xml.contains("class_name"))
|
53 |
// className = xml.getStringProperty("class_name");
|
54 |
// for (int i = 0; i < this.AnimationFunctionList.size(); i++) {
|
55 |
// AnimationFunction animationFunctionItem = (AnimationFunction) this.AnimationFunctionList.get(i);
|
56 |
// return; //provisional
|
57 |
// }
|
58 |
//
|
59 |
} |
60 |
} |