aminePlatform.guis.ontologyKBGUI
Class OntologyKBTreePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byaminePlatform.guis.ontologyKBGUI.OntologyKBTreePanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, OntologyKBPanel, java.io.Serializable

public class OntologyKBTreePanel
extends javax.swing.JPanel
implements OntologyKBPanel

Title: guis.lexiconsOntologyGUI.OntologyTreePanel class

Description:

Copyright : Copyright (c) Adil KABBAJ 2004-2009

See Also:
Serialized Form

Nested Class Summary
(package private)  class OntologyKBTreePanel.PopupListener
           
(package private)  class OntologyKBTreePanel.TreeOntNode
           
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ASCENDING
           
(package private)  javax.swing.JLabel bckWrdBt
           
(package private)  javax.swing.JButton btAbduction
           
(package private)  javax.swing.JButton btAnalogy
           
(package private)  javax.swing.JButton btClassification
           
(package private)  javax.swing.JButton btDeduction
           
(package private)  javax.swing.JButton btGeneralization
           
(package private)  javax.swing.JButton btInformationRetrieval
           
(package private)  java.awt.event.ActionListener csInsertAction
           
(package private)  Identifier currentLanguage
           
 Lexicon currentLexicon
           
static int DESCENDING
           
 boolean dynamicOntologyCall
           
(package private)  java.awt.event.ActionListener editAction
           
(package private)  javax.swing.JMenuItem editMnItem
           
(package private)  javax.swing.JButton expandAllBt
           
(package private)  java.awt.event.ActionListener findAction
           
(package private)  javax.swing.JMenuItem findMnItem
           
static java.awt.Font fontBoldTxtFld
           
static java.awt.Font fontItalicBoldTxtFld
           
static java.awt.Font fontItalicTxtFld
           
static java.awt.Font fontTxtFld
           
(package private)  javax.swing.JLabel forWrdBt
           
(package private)  java.awt.event.ActionListener gotoFirstOccurAction
           
(package private)  javax.swing.JMenuItem gotoFirstOccurMnItem
           
(package private)  java.util.HashMap hmpContexts
           
(package private)  java.util.HashMap hmpMetaphors
           
(package private)  java.util.HashMap hmpSitOrRules
           
(package private)  boolean ignoreSelectionHistory
           
(package private)  javax.swing.JMenuItem indInsMnItem
           
(package private)  TextFieldPopup inputDlgTxtFld
           
(package private)  javax.swing.JMenu insertMenu
           
(package private)  javax.swing.JMenu insertNewCSMenu
           
(package private)  javax.swing.JMenu insertNewLinkMenu
           
 IntegrateCSRuleFrame integrateCSRuleFrame
           
 IntegrateDefinitionFrame integrateDefinitionFrame
           
static AmineList integratedNodesList
           
 IntegrateFrame integrateFrame
           
 IntegrateSituationFrame integrateSituationFrame
           
(package private)  boolean isBckWrdActv
           
(package private)  boolean isForWrdActv
           
(package private)  int j
           
(package private)  javax.swing.JLabel labelIdent
           
(package private)  javax.swing.JLabel labelLanguage
           
(package private)  java.awt.event.ActionListener linkRemAction
           
(package private)  javax.swing.JMenuItem linkRemBisMnItem
           
(package private)  javax.swing.JMenuItem linkRemMnItem
           
(package private)  javax.swing.JMenuItem lnk2IndInsMnItem
           
(package private)  javax.swing.JMenuItem lnk2RuleInsMnItem
           
(package private)  javax.swing.JMenuItem lnk2SitInsMnItem
           
(package private)  javax.swing.JMenuItem lnk2TypeInsMnItem
           
(package private)  LanguagesComboBox lstLanguage
           
 MemoryBasedInferencesFrame memoryBasedInferencesFrame
           
(package private)  javax.swing.JPanel menuBarFind
           
(package private)  int nbrContexts
           
(package private)  int nbrMetaphors
           
(package private)  int nbrSitOrRules
           
(package private)  java.awt.event.ActionListener nextAction
           
(package private)  javax.swing.JMenuItem nextMnItem
           
(package private)  java.awt.event.ActionListener nodeRemAction
           
(package private)  javax.swing.JMenuItem nodeRemMnItem
           
 Ontology ontology
           
 OntologyKBGUIFrame ontologyGUIFrame
           
 javax.swing.tree.DefaultTreeModel ontTreeModel
           
(package private)  javax.swing.JPopupMenu popup
           
(package private)  javax.swing.JMenu removeMenu
           
(package private)  OntologyKBTreePanel.TreeOntNode rootTreeNode
           
(package private)  javax.swing.JMenuItem ruleInsMnItem
           
(package private)  java.util.ArrayList selectionHistory
           
(package private)  int selectionHistoryIndex
           
(package private)  java.awt.event.ActionListener showContentAction
           
(package private)  javax.swing.JMenuItem showContentMnItem
           
(package private)  javax.swing.JMenuItem sitInsMnItem
           
(package private)  java.awt.event.ActionListener supTypAction
           
(package private)  javax.swing.JMenuItem supTypMnItem
           
(package private)  java.awt.event.ActionListener synAction
           
(package private)  javax.swing.JMenuItem synMnItem
           
(package private)  javax.swing.JTree tree
           
(package private)  javax.swing.event.TreeSelectionListener treeSelectionListener
           
(package private)  TextFieldPopup txtFldIdentToFind
           
(package private)  TxtFldInputDialog txtFldInputDialog
           
(package private)  javax.swing.JScrollPane typeHierarchy
           
(package private)  javax.swing.JMenuItem typeInsMnItem
           
(package private)  java.util.ArrayList visitedNodes
           
(package private)  java.util.ArrayList visitedTreeNodes
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
OntologyKBTreePanel(Ontology ontology, OntologyKBGUIFrame ontGUIFrame, boolean dynamicOntologyCall)
           
 
Method Summary
(package private)  void bckWrdBt()
           
(package private)  void doAbduction()
           
(package private)  void doAnalogy()
           
(package private)  void doDeduction()
           
(package private)  void doIntegration(int i)
           
(package private)  void editSynonyms()
           
(package private)  void expandAllBt()
           
 void finalize()
           
(package private)  void findBt()
           
(package private)  OntologyKBTreePanel.TreeOntNode findNode(java.lang.String toFind)
           
(package private)  void findNodeBis(java.lang.String idToFind)
           
(package private)  void forWrdBt()
           
 CS getCSOfNode(java.lang.Object node)
           
 void insertDrawAndBrowserViews(Node node)
           
 void newNodeSelected()
           
(package private)  boolean oneFather(Identifier ident)
           
 void removeDrawAndBrowserViews(Node node)
           
(package private)  void select(OntologyKBTreePanel.TreeOntNode node)
           
 void setElemsInTxtFldFind()
           
(package private)  boolean showContent(OntologyKBTreePanel.TreeOntNode currentTreeNode)
           
 void updateCurrentLexicon()
           
 void updateCurrentLexicon(Identifier language, java.lang.Object SelectedItem)
           
 void updateNodeRectDrawViews(Node node, java.lang.String newName)
           
(package private)  void updateRenameSynMenus(boolean mode)
           
 void updateTree()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASCENDING

public static final int ASCENDING
See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
See Also:
Constant Field Values

fontTxtFld

public static final java.awt.Font fontTxtFld

fontBoldTxtFld

public static final java.awt.Font fontBoldTxtFld

fontItalicTxtFld

public static final java.awt.Font fontItalicTxtFld

fontItalicBoldTxtFld

public static final java.awt.Font fontItalicBoldTxtFld

ontology

public Ontology ontology

rootTreeNode

OntologyKBTreePanel.TreeOntNode rootTreeNode

integratedNodesList

public static AmineList integratedNodesList

ontologyGUIFrame

public OntologyKBGUIFrame ontologyGUIFrame

currentLexicon

public Lexicon currentLexicon

currentLanguage

Identifier currentLanguage

visitedNodes

java.util.ArrayList visitedNodes

visitedTreeNodes

java.util.ArrayList visitedTreeNodes

ontTreeModel

public javax.swing.tree.DefaultTreeModel ontTreeModel

tree

javax.swing.JTree tree

integrateFrame

public IntegrateFrame integrateFrame

integrateDefinitionFrame

public IntegrateDefinitionFrame integrateDefinitionFrame

integrateSituationFrame

public IntegrateSituationFrame integrateSituationFrame

integrateCSRuleFrame

public IntegrateCSRuleFrame integrateCSRuleFrame

memoryBasedInferencesFrame

public MemoryBasedInferencesFrame memoryBasedInferencesFrame

hmpSitOrRules

java.util.HashMap hmpSitOrRules

nbrSitOrRules

int nbrSitOrRules

hmpContexts

java.util.HashMap hmpContexts

nbrContexts

int nbrContexts

hmpMetaphors

java.util.HashMap hmpMetaphors

nbrMetaphors

int nbrMetaphors

selectionHistory

java.util.ArrayList selectionHistory

selectionHistoryIndex

int selectionHistoryIndex

treeSelectionListener

javax.swing.event.TreeSelectionListener treeSelectionListener

typeHierarchy

javax.swing.JScrollPane typeHierarchy

menuBarFind

javax.swing.JPanel menuBarFind

bckWrdBt

javax.swing.JLabel bckWrdBt

isBckWrdActv

boolean isBckWrdActv

forWrdBt

javax.swing.JLabel forWrdBt

isForWrdActv

boolean isForWrdActv

ignoreSelectionHistory

boolean ignoreSelectionHistory

dynamicOntologyCall

public boolean dynamicOntologyCall

j

int j

labelLanguage

javax.swing.JLabel labelLanguage

lstLanguage

LanguagesComboBox lstLanguage

labelIdent

javax.swing.JLabel labelIdent

txtFldIdentToFind

TextFieldPopup txtFldIdentToFind

expandAllBt

javax.swing.JButton expandAllBt

btClassification

javax.swing.JButton btClassification

btGeneralization

javax.swing.JButton btGeneralization

btInformationRetrieval

javax.swing.JButton btInformationRetrieval

btDeduction

javax.swing.JButton btDeduction

btAbduction

javax.swing.JButton btAbduction

btAnalogy

javax.swing.JButton btAnalogy

inputDlgTxtFld

TextFieldPopup inputDlgTxtFld

txtFldInputDialog

TxtFldInputDialog txtFldInputDialog

popup

javax.swing.JPopupMenu popup

insertMenu

javax.swing.JMenu insertMenu

insertNewCSMenu

javax.swing.JMenu insertNewCSMenu

insertNewLinkMenu

javax.swing.JMenu insertNewLinkMenu

removeMenu

javax.swing.JMenu removeMenu

findMnItem

javax.swing.JMenuItem findMnItem

editMnItem

javax.swing.JMenuItem editMnItem

showContentMnItem

javax.swing.JMenuItem showContentMnItem

synMnItem

javax.swing.JMenuItem synMnItem

supTypMnItem

javax.swing.JMenuItem supTypMnItem

typeInsMnItem

javax.swing.JMenuItem typeInsMnItem

ruleInsMnItem

javax.swing.JMenuItem ruleInsMnItem

sitInsMnItem

javax.swing.JMenuItem sitInsMnItem

indInsMnItem

javax.swing.JMenuItem indInsMnItem

lnk2TypeInsMnItem

javax.swing.JMenuItem lnk2TypeInsMnItem

lnk2IndInsMnItem

javax.swing.JMenuItem lnk2IndInsMnItem

lnk2RuleInsMnItem

javax.swing.JMenuItem lnk2RuleInsMnItem

lnk2SitInsMnItem

javax.swing.JMenuItem lnk2SitInsMnItem

linkRemMnItem

javax.swing.JMenuItem linkRemMnItem

nodeRemMnItem

javax.swing.JMenuItem nodeRemMnItem

linkRemBisMnItem

javax.swing.JMenuItem linkRemBisMnItem

gotoFirstOccurMnItem

javax.swing.JMenuItem gotoFirstOccurMnItem

nextMnItem

javax.swing.JMenuItem nextMnItem

nextAction

java.awt.event.ActionListener nextAction

supTypAction

java.awt.event.ActionListener supTypAction

linkRemAction

java.awt.event.ActionListener linkRemAction

nodeRemAction

java.awt.event.ActionListener nodeRemAction

csInsertAction

java.awt.event.ActionListener csInsertAction

findAction

java.awt.event.ActionListener findAction

editAction

java.awt.event.ActionListener editAction

showContentAction

java.awt.event.ActionListener showContentAction

synAction

java.awt.event.ActionListener synAction

gotoFirstOccurAction

java.awt.event.ActionListener gotoFirstOccurAction
Constructor Detail

OntologyKBTreePanel

public OntologyKBTreePanel(Ontology ontology,
                           OntologyKBGUIFrame ontGUIFrame,
                           boolean dynamicOntologyCall)
Method Detail

finalize

public void finalize()

updateTree

public void updateTree()

getCSOfNode

public CS getCSOfNode(java.lang.Object node)
Specified by:
getCSOfNode in interface OntologyKBPanel

setElemsInTxtFldFind

public void setElemsInTxtFldFind()

oneFather

boolean oneFather(Identifier ident)

updateCurrentLexicon

public void updateCurrentLexicon()

updateCurrentLexicon

public void updateCurrentLexicon(Identifier language,
                                 java.lang.Object SelectedItem)

newNodeSelected

public void newNodeSelected()

updateRenameSynMenus

void updateRenameSynMenus(boolean mode)

editSynonyms

void editSynonyms()

select

void select(OntologyKBTreePanel.TreeOntNode node)

bckWrdBt

void bckWrdBt()

forWrdBt

void forWrdBt()

findBt

void findBt()

expandAllBt

void expandAllBt()

doIntegration

void doIntegration(int i)

doDeduction

void doDeduction()

doAbduction

void doAbduction()

doAnalogy

void doAnalogy()

findNodeBis

void findNodeBis(java.lang.String idToFind)

findNode

OntologyKBTreePanel.TreeOntNode findNode(java.lang.String toFind)

showContent

boolean showContent(OntologyKBTreePanel.TreeOntNode currentTreeNode)

removeDrawAndBrowserViews

public void removeDrawAndBrowserViews(Node node)

insertDrawAndBrowserViews

public void insertDrawAndBrowserViews(Node node)

updateNodeRectDrawViews

public void updateNodeRectDrawViews(Node node,
                                    java.lang.String newName)