Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libAnimation / src / com / iver / cit / gvsig / animation / keyframe / AnimationFunction.java @ 18223

History | View | Annotate | Download (1.56 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
                // TODO Auto-generated method stub
33
                return this.getClass().getName();
34
        }
35

    
36
        
37
        public XMLEntity getXMLEntity() {
38
                // TODO Auto-generated method stub
39
                XMLEntity xml = new XMLEntity();
40
                
41
                xml.putProperty("class_name", this.getClassName());                
42
                for (int i = 0; i < this.AnimationFunctionList.size(); i++) {
43
                        AnimationFunction animationFunctionItem = (AnimationFunction) this.AnimationFunctionList.get(i);        
44
                        xml.addChild(((IPersistence)animationFunctionItem).getXMLEntity());
45
                        return xml;//provisional        
46
                }        
47
                return xml;
48
        }
49

    
50
        
51
        public void setXMLEntity(XMLEntity xml) {
52
                // TODO Auto-generated method stub
53
                
54
                if (xml.contains("class_name"))
55
                        className = xml.getStringProperty("class_name");        
56
                for (int i = 0; i < this.AnimationFunctionList.size(); i++) {
57
                        AnimationFunction animationFunctionItem = (AnimationFunction) this.AnimationFunctionList.get(i);                        
58
                        return;         //provisional
59
                }        
60
                
61
        }
62
}