use of org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction in project knime-core by knime.
the class DecTreePredictorGraphView method createTreeMenu.
/**
* Create menu to control tree.
*
* @return A new JMenu with tree operation buttons
*/
private JMenu createTreeMenu() {
final JMenu result = new JMenu("Tree");
result.setMnemonic('T');
Action expand = new ExpandBranchAction<DecisionTreeNode>(m_graph);
expand.putValue(Action.NAME, "Expand Selected Branch");
Action collapse = new CollapseBranchAction<DecisionTreeNode>(m_graph);
collapse.putValue(Action.NAME, "Collapse Selected Branch");
result.add(expand);
result.add(collapse);
return result;
}
use of org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction in project knime-core by knime.
the class TreeEnsembleLearnerNodeView2 method createTreeMenu.
/**
* Create menu to control tree.
*
* @return A new JMenu with tree operation buttons
*/
private JMenu createTreeMenu() {
final JMenu result = new JMenu("Tree");
result.setMnemonic('T');
Action expand = new ExpandBranchAction<AbstractTreeNode>(m_graph);
expand.putValue(Action.NAME, "Expand Selected Branch");
Action collapse = new CollapseBranchAction<AbstractTreeNode>(m_graph);
collapse.putValue(Action.NAME, "Collapse Selected Branch");
result.add(expand);
result.add(collapse);
return result;
}
use of org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction in project knime-core by knime.
the class RegressionTreeLearnerNodeView method createTreeMenu.
/**
* Create menu to control tree.
*
* @return A new JMenu with tree operation buttons
*/
private JMenu createTreeMenu() {
final JMenu result = new JMenu("Tree");
result.setMnemonic('T');
Action expand = new ExpandBranchAction<DecisionTreeNode>(m_graph);
expand.putValue(Action.NAME, "Expand Selected Branch");
Action collapse = new CollapseBranchAction<DecisionTreeNode>(m_graph);
collapse.putValue(Action.NAME, "Collapse Selected Branch");
result.add(expand);
result.add(collapse);
return result;
}
use of org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction in project knime-core by knime.
the class DecTreeLearnerGraphView method createTreeMenu.
/**
* Create menu to control tree.
*
* @return A new JMenu with tree operation buttons
*/
private JMenu createTreeMenu() {
final JMenu result = new JMenu("Tree");
result.setMnemonic('T');
Action expand = new ExpandBranchAction<DecisionTreeNode>(m_graph);
expand.putValue(Action.NAME, "Expand Selected Branch");
Action collapse = new CollapseBranchAction<DecisionTreeNode>(m_graph);
collapse.putValue(Action.NAME, "Collapse Selected Branch");
result.add(expand);
result.add(collapse);
return result;
}
Aggregations