Class RRFSPanel

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

public class RRFSPanel extends ParameterPanel
This java class is used to create and show a panel for the parameter settings of the relevance-redundancy feature selection(RRFS) method.
Author:
Shahin Salavati, Sina Tabakhi
See Also:
  • Field Details

    • lbl_similarity

      JLabel lbl_similarity
    • lbl_similarityError

      JLabel lbl_similarityError
    • txt_similarity

      JTextField txt_similarity
    • similarity

      private double similarity
    • DEFAULT_SIMILARITY

      private static final double DEFAULT_SIMILARITY
      See Also:
  • Constructor Details

    • RRFSPanel

      public RRFSPanel()
      Creates new form RRFSPanel. 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
    • getSimilarity

      public double getSimilarity()
      This method returns the similarity threshold value.
      Returns:
      the similarity threshold parameter
    • setSimilarity

      public void setSimilarity(double similarity)
      This method sets the similarity threshold value.
      Parameters:
      similarity - the similarity threshold value
    • setDefaultValue

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

      public void setUserValue(double simValue)
      Sets the last values of the RRFS parameters entered by user
      Parameters:
      simValue - the value of the similarity