Revision 15472

View differences:

import/ext3D/branches/ext3D_v1.1/libAnimation/src/com/iver/cit/gvsig/animation/AnimationContainer.java
9 9
import com.iver.utiles.IPersistance;
10 10
import com.iver.utiles.XMLEntity;
11 11

  
12
public class AnimationContainer implements IPersistance{
12
public class AnimationContainer implements IPersistance {
13 13

  
14 14
	// IAnimationTrakc List
15 15
	public List AnimationTrackList;
......
127 127
		AnimationTrackList = animationTrackList;
128 128
	}
129 129

  
130
	/*	 
130
	/*
131 131
	 * IPersistance methods.
132 132
	 */
133
	
133

  
134 134
	public String getClassName() {
135 135
		// TODO Auto-generated method stub
136
		return this.getClass().getName();		
136
		return this.getClass().getName();
137 137
	}
138
	
138

  
139 139
	/**
140 140
	 * @return
141 141
	 */
......
145 145
		for (int i = 0; i < this.AnimationTrackList.size(); i++) {			
146 146
			IAnimationTrack trackElement = (IAnimationTrack) this.AnimationTrackList.get(i);			
147 147
			trackElement.getXMLEntity();
148
		}		
148
		}
149 149
		return xml;
150 150
	}
151 151

  
......
156 156
		if (xml.contains("class_name"))
157 157
			className = xml.getStringProperty("class_name");	
158 158
		for (int i = 0; i < this.AnimationTrackList.size(); i++) {
159
			IAnimationTrack trackElement = (IAnimationTrack) this.AnimationTrackList.get(i);			
160
			trackElement.setXMLEntity(xml);			
161
		}					
159
			IAnimationTrack trackElement = (IAnimationTrack) this.AnimationTrackList
160
					.get(i);
161
			trackElement.setXMLEntity(xml);
162
		}
162 163
	}
163 164

  
164 165
	public String toString() {
......
184 185
		if ((ATL != null) && !ATL.isEmpty()) {
185 186
			for (int i = 0; i < ATL.size(); i++) {
186 187
				IAnimationTrack element = (IAnimationTrack) ATL.get(i);
187
				element.apply(Tini, Tend);
188
				if (element.isEnable())
189
					element.apply(Tini, Tend);
188 190
			}
189 191
		}
190 192
	}

Also available in: Unified diff