Revision 6900 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.swing/org.gvsig.raster.swing.legend/org.gvsig.raster.swing.legend.impl/src/main/java/org/gvsig/raster/swing/legend/impl/colortable/selector/ColorTableSelectorPanelController.java
ColorTableSelectorPanelController.java | ||
---|---|---|
26 | 26 |
import java.awt.Dimension; |
27 | 27 |
import java.awt.event.ActionEvent; |
28 | 28 |
import java.awt.event.ActionListener; |
29 |
import java.awt.event.ComponentListener; |
|
30 |
import java.awt.event.FocusListener; |
|
29 | 31 |
import java.io.File; |
30 | 32 |
import java.util.ArrayList; |
31 | 33 |
import java.util.Iterator; |
... | ... | |
162 | 164 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
163 | 165 |
|
164 | 166 |
int index = this.tblColorTables.getSelectedRow(); |
165 |
ColorTable colorTable = ((ColorTablesTableModel)this.tblColorTables.getModel()).getColorTable(index).getValue(); |
|
167 |
ColorTable sourceColorTable = ((ColorTablesTableModel)this.tblColorTables.getModel()).getColorTable(index).getValue(); |
|
168 |
|
|
169 |
//Le pasamos una copiamos de la tabla de color al editor para que no la modifique autom?ticamente |
|
170 |
ColorTable colorTable = RasterLegendLocator.getRasterLegendManager().createColorTable(); |
|
171 |
colorTable.copyFrom(colorTable); |
|
172 |
|
|
166 | 173 |
//FIXME: ?Al manager? |
167 | 174 |
final ColorTableEditorPanelController panel = new ColorTableEditorPanelController(); |
168 | 175 |
|
... | ... | |
488 | 495 |
} |
489 | 496 |
} |
490 | 497 |
|
498 |
@Override |
|
499 |
public synchronized void addFocusListener(FocusListener l) { |
|
500 |
// TODO Auto-generated method stub |
|
501 |
super.addFocusListener(l); |
|
502 |
} |
|
491 | 503 |
|
504 |
@Override |
|
505 |
public void addListSelectionListener(ListSelectionListener listener) { |
|
506 |
tblColorTables.getSelectionModel().addListSelectionListener(listener); |
|
507 |
} |
|
508 |
|
|
492 | 509 |
} |
Also available in: Unified diff