Revision 11850 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/SingleSymbol.java
SingleSymbol.java | ||
---|---|---|
88 | 88 |
private JTextField txtLabel; |
89 | 89 |
private JButton btnOpenSymbolLevelsEditor; |
90 | 90 |
private SingleSymbolLegend legend; |
91 |
private ZSort zSort; |
|
91 | 92 |
|
92 | 93 |
public SingleSymbol() { |
93 | 94 |
super(); |
... | ... | |
124 | 125 |
* @see com.iver.cit.gvsig.gui.legendmanager.panels.ILegendPanel#getLegend() |
125 | 126 |
*/ |
126 | 127 |
public ILegend getLegend() { |
127 |
return new SingleSymbolLegend(getSymbolPreviewPanel().getSymbol()); |
|
128 |
SingleSymbolLegend leg = new SingleSymbolLegend(getSymbolPreviewPanel().getSymbol()); |
|
129 |
leg.setZSort(zSort); |
|
130 |
return leg; |
|
128 | 131 |
} |
129 | 132 |
|
130 | 133 |
public String getDescription() { |
131 |
return PluginServices.getText(this,"Muestra_todos_los_elementos_de_una_capa_usando_el_mismo_simbolo");
|
|
134 |
return PluginServices.getText(this,"Muestra_todos_s_elementos_de_una_capa_usando_el_mismo_simbolo"); |
|
132 | 135 |
} |
133 | 136 |
|
134 | 137 |
public Class getParentClass() { |
... | ... | |
243 | 246 |
setSymbol((ISymbol) se.getSelectedObject()); |
244 | 247 |
} |
245 | 248 |
} else if (c.equals(getBtnOpenSymbolLevelsEditor())){ |
246 |
ILegend leg = getLegend(); |
|
247 |
if (leg != null) { |
|
248 |
SymbolLevelsWindow sl = new SymbolLevelsWindow(new ZSort(leg)); |
|
249 |
if (legend != null) { |
|
250 |
ZSort myZSort = legend.getZSort(); |
|
251 |
if (myZSort == null) { |
|
252 |
myZSort = new ZSort(legend); |
|
253 |
} |
|
254 |
SymbolLevelsWindow sl = new SymbolLevelsWindow(myZSort); |
|
249 | 255 |
PluginServices.getMDIManager().addWindow(sl); |
256 |
zSort = sl.getZSort(); |
|
250 | 257 |
} |
251 | 258 |
} |
252 | 259 |
} |
Also available in: Unified diff