Revision 13928 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/SingleSymbol.java
SingleSymbol.java | ||
---|---|---|
70 | 70 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
71 | 71 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
72 | 72 |
import com.iver.cit.gvsig.fmap.rendering.ILegend; |
73 |
import com.iver.cit.gvsig.fmap.rendering.LegendFactory; |
|
73 | 74 |
import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend; |
74 | 75 |
import com.iver.cit.gvsig.fmap.rendering.ZSort; |
75 | 76 |
import com.iver.cit.gvsig.gui.styling.SymbolLevelsWindow; |
... | ... | |
117 | 118 |
} |
118 | 119 |
if (legend instanceof SingleSymbolLegend) { |
119 | 120 |
setSymbol(legend.getDefaultSymbol()); |
120 |
try { |
|
121 |
this.legend = (SingleSymbolLegend) legend.cloneLegend(); |
|
121 |
this.legend = (SingleSymbolLegend) legend; |
|
122 | 122 |
|
123 |
} catch (XMLException e) { |
|
124 |
// TODO Auto-generated catch block |
|
125 |
NotificationManager.addError(PluginServices.getText(this, "unable_to_load_legend_from_XMLEntity"), e); |
|
126 |
} |
|
127 |
|
|
128 | 123 |
} else { |
129 |
// TODO calculate a default symbol |
|
124 |
this.legend = (SingleSymbolLegend) LegendFactory. |
|
125 |
createSingleSymbolLegend(shapeType); |
|
130 | 126 |
} |
131 | 127 |
|
132 | 128 |
} |
Also available in: Unified diff