/*
 * Created on 8 juin 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package geonoteOutils;

import org.jdom.Element;

/**
 * @author lefevre
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TraceurDonnee extends Traceur {

	public TraceurDonnee() {
		super();
	}

	public TraceurDonnee(String path, String rac) {
		super(path, rac);
	}
	
	/**
	 * ajoute un elt echelle ou le modifie si deja present
	 * @param ech
	 */
	public void ajouteEchelle(double ech) {
		Element echelle = rechercher(document.getRootElement(),"echelle");
		if (echelle == null) {
			echelle = new Element("echelle");
			document.getRootElement().addContent(echelle);
		}
		echelle.setText(Double.toString(ech));
	}
}
