Search in sources :

Example 6 with CollapseBranchAction

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;
}
Also used : ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) Action(javax.swing.Action) ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) JMenu(javax.swing.JMenu)

Example 7 with CollapseBranchAction

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;
}
Also used : ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) Action(javax.swing.Action) ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) JMenu(javax.swing.JMenu)

Example 8 with CollapseBranchAction

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;
}
Also used : ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) Action(javax.swing.Action) ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) JMenu(javax.swing.JMenu)

Example 9 with CollapseBranchAction

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;
}
Also used : ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) Action(javax.swing.Action) ExpandBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) CollapseBranchAction(org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction) JMenu(javax.swing.JMenu)

Aggregations

Action (javax.swing.Action)9 JMenu (javax.swing.JMenu)9 CollapseBranchAction (org.knime.base.node.mine.decisiontree2.view.graph.CollapseBranchAction)9 ExpandBranchAction (org.knime.base.node.mine.decisiontree2.view.graph.ExpandBranchAction)9