Revision 15445 import/ext3D/branches/ext3D_v1.1/libAnimation/src/com/iver/cit/gvsig/animation/AnimationPlayer.java

View differences:

AnimationPlayer.java
60 60

  
61 61
	private boolean pauseFlag = false;
62 62

  
63
	
64
	private double m_length;
65

  
66
	private String className;
67

  
68

  
63 69
	private static boolean occupied = false;
64 70

  
71

  
65 72
	private static Animation3D a3D;
66 73

  
67 74
	public void play() {
......
406 413
	public XMLEntity getXMLEntity() {
407 414
		// TODO Auto-generated method stub
408 415
		XMLEntity xml = new XMLEntity();
409
		xml.putProperty("className", this.getClassName());
416
		xml.putProperty("class_name", this.getClassName());
410 417
		xml.putProperty("mode", mode);
411
		xml.putProperty("length",auxTime);
418
		xml.putProperty("length",globalTime);
412 419
		xml.putProperty("framerate",frameRate);
413 420

  
414 421
		return xml;
......
419 426
		// TODO Auto-generated method stub
420 427

  
421 428
		
429
		if (xml.contains("class_name"))
430
			className = xml.getStringProperty("class_name");	
422 431
		if (xml.contains("mode"))
423 432
			mode = xml.getIntProperty("mode");		
424 433
		if (xml.contains("length"))
425
			auxTime = xml.getIntProperty("length");
434
			globalTime = xml.getDoubleProperty("length");
426 435
		if (xml.contains("framerate"))
427 436
			frameRate = xml.getIntProperty("framerate");
428 437
				

Also available in: Unified diff