Revision 17773 trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/decisiontrees/gui/ClassEditorDialog.java
ClassEditorDialog.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
private static final long serialVersionUID = -2297193201725695467L; |
19 | 19 |
|
20 |
private ClassEditorPanel classEditorPanel = null; |
|
20 |
private ClassEditorPanel classEditorPanel = null; |
|
21 |
private DecisionTreePanel decisionTreePanel = null; |
|
21 | 22 |
|
22 |
public ClassEditorDialog(int width, int height) { |
|
23 |
public ClassEditorDialog(int width, int height, DecisionTreePanel decisionTreePanel) {
|
|
23 | 24 |
this.setSize(width, height); |
24 | 25 |
this.setLayout(new BorderLayout()); |
26 |
this.decisionTreePanel = decisionTreePanel; |
|
25 | 27 |
this.add(getClassEditorPanel(), BorderLayout.CENTER); |
26 | 28 |
} |
27 | 29 |
|
... | ... | |
60 | 62 |
|
61 | 63 |
public ClassEditorPanel getClassEditorPanel() { |
62 | 64 |
if (classEditorPanel == null){ |
63 |
classEditorPanel = new ClassEditorPanel(this); |
|
65 |
classEditorPanel = new ClassEditorPanel(this, getDecisionTreePanel());
|
|
64 | 66 |
} |
65 | 67 |
return classEditorPanel; |
66 | 68 |
} |
67 | 69 |
|
70 |
public DecisionTreePanel getDecisionTreePanel() { |
|
71 |
return decisionTreePanel; |
|
72 |
} |
|
73 |
|
|
68 | 74 |
} |
Also available in: Unified diff