Revision 17773 trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/decisiontrees/gui/listener/ClassEditorPanelListener.java
ClassEditorPanelListener.java | ||
---|---|---|
11 | 11 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
12 | 12 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
13 | 13 |
import org.gvsig.gui.beans.messages.Messages; |
14 |
import org.gvsig.remotesensing.decisiontrees.DecisionTreeNode; |
|
14 | 15 |
import org.gvsig.remotesensing.decisiontrees.gui.ClassEditorPanel; |
16 |
import org.jgraph.graph.DefaultGraphCell; |
|
15 | 17 |
|
16 | 18 |
import com.iver.andami.PluginServices; |
17 | 19 |
|
... | ... | |
41 | 43 |
} |
42 | 44 |
|
43 | 45 |
if (e.getButton() == ButtonsPanel.BUTTON_ACCEPT) { |
46 |
DefaultGraphCell cell = classEditorPanel.getDecisionTreePanel().getSelectedCell(); |
|
47 |
DecisionTreeNode node = (DecisionTreeNode)cell.getUserObject(); |
|
48 |
node.setClassID(Integer.valueOf(classEditorPanel.getJtextValue().getText()).intValue()); |
|
49 |
classEditorPanel.getDecisionTreePanel().getClassColors().put(new Integer(node.getClassID()), |
|
50 |
classEditorPanel.getJButtonColor().getBackground()); |
|
44 | 51 |
} |
45 |
|
|
46 | 52 |
} |
47 | 53 |
|
48 | 54 |
private void close() { |
Also available in: Unified diff