Revision 575
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/FPopupMenu.java | ||
---|---|---|
27 | 27 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
28 | 28 |
import com.iver.cit.gvsig.fmap.layers.FLyrDefault; |
29 | 29 |
import com.iver.cit.gvsig.fmap.layers.FLyrRaster; |
30 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
31 |
import com.iver.cit.gvsig.gui.IView; |
|
30 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
|
32 | 31 |
import com.iver.cit.gvsig.gui.Panels.AdjustTransparencyPanel; |
33 | 32 |
import com.iver.cit.gvsig.gui.legendmanager.FLegendManagerWindow; |
34 | 33 |
import com.iver.mdiApp.App; |
... | ... | |
77 | 76 |
if (menu.nodo.getUserObject() instanceof TocItemBranch) { |
78 | 77 |
elTema = (TocItemBranch) menu.nodo.getUserObject(); |
79 | 78 |
lyr = elTema.getLayer(); |
80 |
if (lyr instanceof FLyrVect) {
|
|
79 |
if (lyr instanceof ClassifiableVectorial) {
|
|
81 | 80 |
estilo = new JMenuItem(Utilities.getMessage(this, "Cambio_Estilo")); |
82 | 81 |
menu.add(estilo); |
83 | 82 |
estilo.setFont(FPopupMenu.theFont); |
... | ... | |
136 | 135 |
TocItemBranch elTema = (TocItemBranch) menu.nodo.getUserObject(); |
137 | 136 |
FLayer lyr = elTema.getLayer(); |
138 | 137 |
|
139 |
if (lyr instanceof FLyrVect) {
|
|
138 |
if (lyr instanceof ClassifiableVectorial) {
|
|
140 | 139 |
colorChooser = new JColorChooser(); |
141 | 140 |
dlg = JColorChooser.createDialog((JFrame) null, |
142 | 141 |
Utilities.getMessage(this, "Elegir_Color"), |
143 | 142 |
true, colorChooser, null, null); |
144 | 143 |
dlg.show(true); |
145 | 144 |
|
146 |
FLyrVect lyrVect = (FLyrVect) lyr; |
|
145 |
|
|
147 | 146 |
// TODO: |
147 |
// FLyrVect lyrVect = (FLyrVect) lyr; |
|
148 | 148 |
// lyrVect.getLegend().getDefaultSymbol().m_Color = (Color) colorChooser.getColor(); |
149 | 149 |
// lyrVect.getRenderer().setLegendType(FConstant.LEGEND_TYPE_DEFAULT); |
150 | 150 |
menu.getMapContext().fireLegendEvent(); |
... | ... | |
283 | 283 |
private FMap mapContext; |
284 | 284 |
//private JMenuItem capa; |
285 | 285 |
// Lo de fijar la fuente es porque en linux se ve?a mal si no se fija. |
286 |
// TODO: Esto no funcionar? para idiomas como el chino. Hay que cambiarlo. |
|
286 | 287 |
public final static Font theFont = new Font("SansSerif", Font.PLAIN, 10); |
287 | 288 |
|
288 | 289 |
static { |
Also available in: Unified diff