|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
aminePlatform.guis.graphDrawing.GraphDrawPanel
aminePlatform.guis.ontologyKBDrawing.OntologyKBDrawPanel
Title : OntologyDrawPanel
Description : OntologyDrawPanel extends GraphDrawPanel:
(1) redefines some inherited methods
(2) defines new methods
While GraphDrawPanel is part of GraphDrawContainer, OntologyDrawPanel is part of OntologyDrawContainer
Copyright : Copyright (c) Adil KABBAJ 2004-2009
| Nested Class Summary |
| Nested classes inherited from class aminePlatform.guis.graphDrawing.GraphDrawPanel |
GraphDrawPanel.CmdCtxtMenu, GraphDrawPanel.TxtFldVEdge, GraphDrawPanel.TxtFldVNode, GraphDrawPanel.VNodeCtxtMenu |
| 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 byte |
cstbt_ModeBrowser
|
static byte |
cstbt_ModeCollapse
|
static byte |
cstbt_ModeExpand
|
static byte |
cstbt_vCSRule
|
static byte |
cstbt_vIndividu
|
static byte |
cstbt_vRelationConcept
|
static byte |
cstbt_vSituation
|
static byte |
cstbt_vTypeConcept
|
static java.awt.Cursor |
curs_Collapse
|
static java.awt.Cursor |
curs_Expand
|
static java.awt.Cursor |
curs_FocusBrowser
|
static java.awt.Color |
DarkBlue
|
static java.awt.Color |
DarkGreen
|
static java.awt.Color |
DarkOrange
|
static java.awt.Color |
DarkXXX
|
static java.awt.Color |
DarkYellow
|
static javax.swing.ImageIcon |
iconCollapse
|
static javax.swing.ImageIcon |
iconExpand
|
static javax.swing.ImageIcon |
iconFocusBrowser
|
static java.awt.Color |
LightBlue
|
static java.awt.Color |
LightGreen
|
static java.awt.Color |
LightOrange
|
static java.awt.Color |
LightXXX
|
static java.awt.Color |
LightYellow
|
(package private) OntologyKBDrawContainer |
ontologyDrawContainer
|
(package private) AmineSet |
ontologyRelationsSet
|
| Fields inherited from class aminePlatform.guis.graphDrawing.GraphDrawPanel |
clickPoint, cmdCtxtMenu, cstbt_linkMode, cstbt_ModeCmd, cstbt_ModeEdit, cstbt_ModePaste, cstbt_ModeZoom, cstbt_vedgeMode, cstbt_vnodeMode, currentLexicon, currFontSize, curs_Crosshair, curs_default, curs_Hand, curs_Move, curs_North, curs_Text, dragMode, fontTxtFld, lemon_Chiffon, locVGraphFrm, m_zoom, mbt_Curs, prefSize, rectangleBuffer, rectangleTracker, spt_DebDrag, tfldVEdge, tfldVNode, vedgeInEdition, vedgeNamePressed, vedgeNameSelected, vedgeSelected, vgraph, vgraphBuffer, vNodeCopy, vnodeCtxtMenu, vnodePressed, vnodeSelected, ZoomScale |
| 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 | |
OntologyKBDrawPanel(Lexicon lexicon)
|
|
OntologyKBDrawPanel(OntologyKBDrawContainer ontologyDrawContainer)
|
|
| Method Summary | |
protected boolean |
canNodeBeEdited()
|
void |
copy()
Copy the selected elements |
(package private) CS |
copyCS(CS cs)
|
Edge |
createEdge()
Create an Edge. |
Graph |
createGraph()
Create a Graph. |
void |
cut()
Cut the selected elements |
protected void |
cutWithoutBuffering()
|
void |
displayContent(VisualNode vnode)
Display the content of the specified Visual Node. |
boolean |
drawVNode(java.awt.Graphics g,
VisualNode vnode,
Lexicon lexicon)
Draw VisualNode. |
void |
ExeTreatVnode(java.lang.String contenu)
|
CS |
getCSOfNode(java.lang.Object node)
|
OntologyKBDrawContainer |
getOntologyDrawContainer()
|
void |
init()
|
void |
InitRelEnConstr()
|
void |
InittfldVnode()
|
void |
insertDrawAndBrowserViews(Node sourceNode)
|
void |
onMouseClicked(java.awt.event.MouseEvent e)
|
protected void |
onMouseEntered(java.awt.event.MouseEvent e1)
|
void |
onMousePressed(java.awt.event.MouseEvent e)
|
protected void |
onMouseReleased(java.awt.event.MouseEvent e)
|
void |
rearrange()
ADDED By Nabil this method allow the automatic reorganizing of graph's nodes |
void |
removeDrawAndBrowserViews(Node node)
|
protected void |
setElemsInTxtFldVEdge()
|
void |
setOntologyDrawContainer(OntologyKBDrawContainer ontDrawContainer)
|
void |
SetZoomScale(int zoom)
Set the scale zoom of the current VisualGraph |
(package private) boolean |
showContent(CSContentFrame contentFrame,
CS cs)
|
void |
update(VisualNode vnode,
java.lang.String contenu,
java.awt.Rectangle rectangle)
Update the specified vnode according to the new content (contenu) and with the new rectangle. |
void |
updateBrowserVGraph()
|
void |
updateCursorMode(byte btCursMode)
|
void |
updateDeletingEdge()
|
void |
updateDrawAfterRename(Node node,
java.awt.Rectangle rectangle)
|
void |
updateNodeRectDrawViews(Node node,
java.lang.String newName)
|
void |
updateOntDrawVGraph()
|
void |
updateOntTreeView()
|
protected void |
updatePanels()
|
protected void |
updatePanels(Node sourceNode)
|
protected void |
updateTreePanel()
|
| Methods inherited from class aminePlatform.guis.graphDrawing.GraphDrawPanel |
clear, finalize, getBorderForSelection, getFontSize, getTxtInEdition, graphWithDrawingInf, insertText, paintComponent, paste, selectAll, selectElements, selectVEdge, selectVEdgeName, selectVNode, setCursorTolinkMode, setCursorToModeCmd, setCursorToModeEdit, setCursorToModePaste, setCursorToModeZoom, setCursorTovedgeMode, setCursorTovnodeMode, SetFontSize, setIndividualElements, setTypeElements, treatVEdge, unselectTracker, unselectVEdge, unselectVEdgeName, unselectVNode, updateItemsNdeCtxtMn, updateScroll, vnodeClicked, vnodesInTracker, ZoomIn, ZoomOut |
| 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, 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 |
OntologyKBDrawContainer ontologyDrawContainer
AmineSet ontologyRelationsSet
public static final byte cstbt_ModeBrowser
public static final byte cstbt_ModeExpand
public static final byte cstbt_ModeCollapse
public static final byte cstbt_vTypeConcept
public static final byte cstbt_vRelationConcept
public static final byte cstbt_vIndividu
public static final byte cstbt_vSituation
public static final byte cstbt_vCSRule
public static final java.awt.Color LightOrange
public static final java.awt.Color LightBlue
public static final java.awt.Color LightGreen
public static final java.awt.Color LightYellow
public static final java.awt.Color LightXXX
public static final java.awt.Color DarkOrange
public static final java.awt.Color DarkBlue
public static final java.awt.Color DarkGreen
public static final java.awt.Color DarkYellow
public static final java.awt.Color DarkXXX
public static javax.swing.ImageIcon iconFocusBrowser
public static javax.swing.ImageIcon iconExpand
public static javax.swing.ImageIcon iconCollapse
public static final java.awt.Cursor curs_Expand
public static final java.awt.Cursor curs_Collapse
public static final java.awt.Cursor curs_FocusBrowser
| Constructor Detail |
public OntologyKBDrawPanel(Lexicon lexicon)
public OntologyKBDrawPanel(OntologyKBDrawContainer ontologyDrawContainer)
| Method Detail |
public void init()
public OntologyKBDrawContainer getOntologyDrawContainer()
public void setOntologyDrawContainer(OntologyKBDrawContainer ontDrawContainer)
public void InitRelEnConstr()
public void cut()
cut in class GraphDrawPanelprotected void cutWithoutBuffering()
cutWithoutBuffering in class GraphDrawPanelpublic void copy()
GraphDrawPanel
copy in class GraphDrawPanelCS copyCS(CS cs)
protected void setElemsInTxtFldVEdge()
setElemsInTxtFldVEdge in class GraphDrawPanelpublic void SetZoomScale(int zoom)
SetZoomScale in class GraphDrawPanel
public void ExeTreatVnode(java.lang.String contenu)
throws java.lang.Exception
ExeTreatVnode in class GraphDrawPaneljava.lang.Exception
public void updateDrawAfterRename(Node node,
java.awt.Rectangle rectangle)
public void updateNodeRectDrawViews(Node node,
java.lang.String newName)
public void InittfldVnode()
public void onMouseClicked(java.awt.event.MouseEvent e)
onMouseClicked in class GraphDrawPanelprotected void onMouseEntered(java.awt.event.MouseEvent e1)
onMouseEntered in class GraphDrawPanelpublic void onMousePressed(java.awt.event.MouseEvent e)
onMousePressed in class GraphDrawPanelprotected void onMouseReleased(java.awt.event.MouseEvent e)
onMouseReleased in class GraphDrawPanelprotected boolean canNodeBeEdited()
canNodeBeEdited in class GraphDrawPanel
public boolean drawVNode(java.awt.Graphics g,
VisualNode vnode,
Lexicon lexicon)
GraphDrawPanel
drawVNode in class GraphDrawPanel
public void update(VisualNode vnode,
java.lang.String contenu,
java.awt.Rectangle rectangle)
throws java.lang.Exception
GraphDrawPanel
update in class GraphDrawPaneljava.lang.Exceptionpublic void displayContent(VisualNode vnode)
GraphDrawPanel
displayContent in class GraphDrawPanelpublic CS getCSOfNode(java.lang.Object node)
getCSOfNode in interface OntologyKBPanelpublic Edge createEdge()
GraphDrawPanel
createEdge in class GraphDrawPanelpublic Graph createGraph()
GraphDrawPanel
createGraph in class GraphDrawPanel
boolean showContent(CSContentFrame contentFrame,
CS cs)
public void updateCursorMode(byte btCursMode)
updateCursorMode in class GraphDrawPanelpublic void removeDrawAndBrowserViews(Node node)
public void insertDrawAndBrowserViews(Node sourceNode)
protected void updatePanels()
protected void updatePanels(Node sourceNode)
updatePanels in class GraphDrawPanelprotected void updateTreePanel()
updateTreePanel in class GraphDrawPanelpublic void updateDeletingEdge()
updateDeletingEdge in class GraphDrawPanelpublic void updateOntTreeView()
public void updateBrowserVGraph()
public void updateOntDrawVGraph()
public void rearrange()
GraphDrawPanel
rearrange in class GraphDrawPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||