rule
Class FuzzyRuleBaseVariablesDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--rule.FuzzyRuleBaseVariablesDialog

public class FuzzyRuleBaseVariablesDialog
extends javax.swing.JDialog
implements javax.swing.event.ListSelectionListener

The FuzzyRuleBaseVariablesDialog class implements the dialog used to set the fuzzy rule base variables.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  java.awt.BorderLayout borderLayout1
           
(package private)  javax.swing.JButton closeButton
           
(package private)  javax.swing.JLabel jLabel1
           
(package private)  javax.swing.JLabel jLabel2
           
(package private)  javax.swing.JLabel jLabel3
           
(package private)  javax.swing.JLabel jLabel4
           
(package private)  javax.swing.JPanel jPanel1
           
(package private)  javax.swing.JPanel jPanel2
           
(package private)  javax.swing.JScrollPane jScrollPane1
           
(package private)  javax.swing.JPanel panel1
           
(package private)  javax.swing.JButton resetVarButton
           
(package private)  FuzzyRuleBase ruleBase
           
(package private)  javax.swing.JTextField valueTextField
           
(package private)  javax.swing.JList VariableList
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
modal, resizable, title
 
Fields inherited from class java.awt.Window
inputContext, OPENED, ownedWindowList, state, warningString, windowListener
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, ncomponents
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
FuzzyRuleBaseVariablesDialog()
          Creates a FuzzyRuleBaseVariablesDialog object.
FuzzyRuleBaseVariablesDialog(java.awt.Frame frame, java.lang.String title, boolean modal)
          Creates a FuzzyRuleBaseVariablesDialog with the given parameters.
 
Method Summary
(package private)  void closeButton_actionPerformed(java.awt.event.ActionEvent e)
          Closes the dialog window.
protected  void initialize()
          Initializes the variable list.
(package private)  void jbInit()
          Initializes the GUI controls.
(package private)  void resetVarButton_actionPerformed(java.awt.event.ActionEvent e)
          Resets the variable state to be unknown.
 void setRuleBase(FuzzyRuleBase ruleBase)
          Sets the rule base for the dialog and initializes the variable list.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          Fills the value combo box and sets the initial value to match the variable's current value when the user selects a variable from the list box.
(package private)  void valueTextField_actionPerformed(java.awt.event.ActionEvent e)
          Sets the variable value when the user pressed the enter key in the text field.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processWindowEvent, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, constructComponentName, getTitle, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, setFocusOwner, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

panel1

javax.swing.JPanel panel1

borderLayout1

java.awt.BorderLayout borderLayout1

jPanel1

javax.swing.JPanel jPanel1

closeButton

javax.swing.JButton closeButton

jPanel2

javax.swing.JPanel jPanel2

jLabel1

javax.swing.JLabel jLabel1

jLabel2

javax.swing.JLabel jLabel2

VariableList

javax.swing.JList VariableList

ruleBase

FuzzyRuleBase ruleBase

jScrollPane1

javax.swing.JScrollPane jScrollPane1

valueTextField

javax.swing.JTextField valueTextField

jLabel3

javax.swing.JLabel jLabel3

resetVarButton

javax.swing.JButton resetVarButton

jLabel4

javax.swing.JLabel jLabel4
Constructor Detail

FuzzyRuleBaseVariablesDialog

public FuzzyRuleBaseVariablesDialog(java.awt.Frame frame,
                                    java.lang.String title,
                                    boolean modal)
Creates a FuzzyRuleBaseVariablesDialog with the given parameters.
Parameters:
frame - the Frame for this dialog
title - the String that is the title of the dialog
modal - the boolean flag that indicates modality

FuzzyRuleBaseVariablesDialog

public FuzzyRuleBaseVariablesDialog()
Creates a FuzzyRuleBaseVariablesDialog object.
Method Detail

jbInit

void jbInit()
      throws java.lang.Exception
Initializes the GUI controls.
Throws:
java.lang.Exception - if any errors occur during initialization

initialize

protected void initialize()
Initializes the variable list.

closeButton_actionPerformed

void closeButton_actionPerformed(java.awt.event.ActionEvent e)
Closes the dialog window.
Parameters:
e - the ActionEvent object when the close button is pressed

setRuleBase

public void setRuleBase(FuzzyRuleBase ruleBase)
Sets the rule base for the dialog and initializes the variable list.
Parameters:
ruleBase - the FuzzyRuleBase object for the dialog

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Fills the value combo box and sets the initial value to match the variable's current value when the user selects a variable from the list box.
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
e - the ListSelectionEvent object generated when a selection was made

valueTextField_actionPerformed

void valueTextField_actionPerformed(java.awt.event.ActionEvent e)
Sets the variable value when the user pressed the enter key in the text field.
Parameters:
e - the ActionEvent object generated when the user set a text value

resetVarButton_actionPerformed

void resetVarButton_actionPerformed(java.awt.event.ActionEvent e)
Resets the variable state to be unknown.
Parameters:
e - the ActionEvent object generated when the reset button was pressed