Revision 21144 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/mapcontext/rendering/legend/LegendFactory.java
LegendFactory.java | ||
---|---|---|
130 | 130 |
* |
131 | 131 |
* @throws XMLException |
132 | 132 |
*/ |
133 |
public static IVectorLegend createFromXML03(XMLEntity xml) |
|
134 |
throws XMLException { |
|
135 |
//TODO Implementar bien |
|
136 |
try { |
|
137 |
IVectorLegend vl = null; |
|
138 |
Class clase = Class.forName(xml.getStringProperty("className")); |
|
139 |
vl = (IVectorLegend) clase.newInstance(); |
|
140 |
vl.setXMLEntity03(xml); |
|
141 |
|
|
142 |
return vl; |
|
143 |
} catch (ClassNotFoundException e) { |
|
144 |
throw new XMLException(e); |
|
145 |
} catch (InstantiationException e) { |
|
146 |
throw new XMLException(e); |
|
147 |
} catch (IllegalAccessException e) { |
|
148 |
throw new XMLException(e); |
|
149 |
} |
|
150 |
} |
|
151 |
|
|
152 |
/** |
|
153 |
* Crea un renderer con la informaci?n contenida en el objeto XMLEntity |
|
154 |
* |
|
155 |
* @param xml XMLEntity. |
|
156 |
* |
|
157 |
* @return VectorialLegend |
|
158 |
* |
|
159 |
* @throws XMLException |
|
160 |
*/ |
|
161 | 133 |
public static IVectorLegend createFromXML(XMLEntity xml) |
162 | 134 |
throws XMLException { |
163 | 135 |
//TODO Implementar bien |
Also available in: Unified diff