Revision 23598 trunk/libraries/libAnimation/src/com/iver/cit/gvsig/animation/interval/AnimationFunctionInterval.java
AnimationFunctionInterval.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
*/ |
|
19 |
|
|
1 | 20 |
package com.iver.cit.gvsig.animation.interval; |
2 | 21 |
|
3 | 22 |
import com.iver.cit.gvsig.animation.IAnimationType; |
... | ... | |
7 | 26 |
|
8 | 27 |
public class AnimationFunctionInterval implements IAnimationTimeInterval { |
9 | 28 |
|
10 |
//private List animationFuncionList; |
|
11 | 29 |
private AnimationFunction animationFunctionItem; |
12 | 30 |
|
13 | 31 |
private double initialTime = 0; |
... | ... | |
16 | 34 |
|
17 | 35 |
private double intervalTime = endTime - initialTime; |
18 | 36 |
|
19 |
private String className; |
|
20 |
|
|
21 | 37 |
public AnimationFunction getAnimationFuncionItem() { |
22 | 38 |
return animationFunctionItem; |
23 | 39 |
} |
... | ... | |
58 | 74 |
result = "Mostrando lista de funciones de animacion del intervalo Tini:" |
59 | 75 |
+ this.getInitialTime() + " Tend" + this.getEndTime(); |
60 | 76 |
|
61 |
result+= this.animationFunctionItem; // ESTO NO SE SI ES ASI
|
|
77 |
result+= this.animationFunctionItem; |
|
62 | 78 |
|
63 |
// for (Iterator iter = AFL.iterator(); iter.hasNext();) { |
|
64 |
// Object element = (Object) iter.next(); |
|
65 |
// result += "\n" + element; |
|
66 |
// } |
|
67 | 79 |
return result; |
68 | 80 |
} |
69 | 81 |
|
... | ... | |
96 | 108 |
|
97 | 109 |
|
98 | 110 |
public void setXMLEntity(XMLEntity xml) { |
99 |
// TODO Auto-generated method stub |
|
100 |
if (xml.contains("class_name")) |
|
101 |
className= xml.getStringProperty("class_name"); |
|
102 | 111 |
if (xml.contains("begin_time")) |
103 | 112 |
initialTime = xml.getDoubleProperty("begin_time"); |
104 | 113 |
if (xml.contains("end_time")) |
105 | 114 |
endTime = xml.getDoubleProperty("end_time"); |
106 | 115 |
if (xml.contains("interval_time")) |
107 | 116 |
intervalTime = xml.getDoubleProperty("interval_time"); |
108 |
//this.animationFunctionItem.setXMLEntity(xml); |
|
109 | 117 |
|
110 | 118 |
} |
119 |
|
|
120 |
public void removeAllIntervals() { |
|
121 |
// TODO Auto-generated method stub |
|
122 |
|
|
123 |
} |
|
111 | 124 |
} |
Also available in: Unified diff