Revision 21535 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/LegendFactory.java

View differences:

LegendFactory.java
104 104
	}
105 105

  
106 106
	/**
107
	 * Obtiene un objeto con las propiedades del renderer. Este m?todo se
108
	 * invocar? con el fin de guardar el s?mbolo en disco.
109
	 *
110
	 * @param r VectorialLegend.
111
	 *
112
	 * @return XMLEntity.
113
	 *
114
	 * @throws DriverException
115
	 */
116
	public static XMLEntity getXMLEntity(IVectorLegend r)
117
		throws DriverException {
118
		XMLEntity xml = r.getXMLEntity();
119

  
120
		return xml;
121
	}
122

  
123
	/**
124 107
	 * Crea un renderer con la informaci?n contenida en el objeto XMLEntity
125 108
	 *
126 109
	 * @param xml XMLEntity.
......
188 171
	 */
189 172
	public static IVectorLegend cloneLegend(IVectorLegend l)
190 173
		throws XMLException, DriverException {
191
		return createFromXML(getXMLEntity(l));
174
		return createFromXML(l.getXMLEntity());
192 175
	}
193 176
}

Also available in: Unified diff