Class DTClassifierPanel

All Implemented Interfaces:
ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class DTClassifierPanel extends ParameterPanel
This java class is used to create and show a panel for the parameter settings of the decision tree classifier.
Author:
Shahin Salavati, Sina Tabakhi
See Also:
  • Constructor Details

    • DTClassifierPanel

      public DTClassifierPanel()
      Creates new form DTClassifierPanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • keyReleased

      public void keyReleased(KeyEvent e)
      The listener method for receiving keyboard events (keystrokes). Invoked when a key has been released.
      Specified by:
      keyReleased in interface KeyListener
      Specified by:
      keyReleased in class ParameterPanel
      Parameters:
      e - an action event
    • btn_okActionPerformed

      protected void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Overrides:
      btn_okActionPerformed in class ParameterPanel
      Parameters:
      e - an action event
    • getConfidence

      public double getConfidence()
      This method returns the confidence factor value.
      Returns:
      the Confidence factor parameter
    • setConfidence

      public void setConfidence(double confidence)
      This method sets the confidence factor value.
      Parameters:
      confidence - the confidence factor value
    • getMinNum

      public int getMinNum()
      This method returns the minimum number of samples per leaf.
      Returns:
      the MinNumSample parameter
    • setMinNum

      public void setMinNum(int minNum)
      This method sets the minimum number of samples per leaf value.
      Parameters:
      minNum - the minimum number of samples per leaf value.
    • setDefaultValue

      public void setDefaultValue()
      Sets the default values of the decision tree parameters
    • setUserValue

      public void setUserValue(double conf, int minSample)
      Sets the last values of the decision tree parameters entered by user
      Parameters:
      conf - the confidence factor
      minSample - the minimum number of samples per leaf