|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.cgDrawing.CGDrawPanel
Title : CGDrawPanel
Description : CGDrawPanel extends GraphDrawPanel to suit the drawing of CG. Specific features of CG (like state for concepts) are treated here.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
Nested Class Summary | |
class |
CGDrawPanel.JConceptStates
|
class |
CGDrawPanel.LabelConc
|
(package private) class |
CGDrawPanel.LBoxEtat
|
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 | |
(package private) static java.awt.Font |
fontTxtFldBold
|
(package private) GraphDrawFrame |
graphDrawFrame
|
CGDrawPanel.LabelConc |
labelConcRef
|
(package private) CGDrawPanel.JConceptStates |
lstStates
|
javax.swing.DefaultListModel |
model
|
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 | |
CGDrawPanel(GraphDrawFrame graphDrawFrame,
Lexicon lexicon)
|
Method Summary | |
void |
copy()
Copy the selected elements |
Edge |
createEdge()
Create an Edge. |
Graph |
createGraph()
Create a Graph. |
protected void |
cutWithoutBuffering()
|
void |
displayContent(VisualNode vnode)
Display the content of the specified Visual Node. |
void |
drawConcept(java.awt.Graphics g,
Concept concept)
|
(package private) void |
drawState(java.awt.Graphics g,
VisualNode vnode)
|
boolean |
drawVNode(java.awt.Graphics g,
VisualNode vnode,
Lexicon lexicon)
Draw VisualNode. |
void |
ExeTreatVnode(java.lang.String contenu)
|
protected java.lang.String |
getTxtInEdition(int caretPosition)
|
boolean |
graphWithDrawingInf(Graph graph)
|
void |
InitRelEnConstr()
|
protected boolean |
insertText(java.lang.String s2Insert,
int insertPosition)
|
protected void |
onMouseReleased(java.awt.event.MouseEvent e)
|
void |
paintComponent(java.awt.Graphics g)
PaintComponent of the current GraphDrawPanel |
void |
paste()
Paste the content of the buffer at the position specified by the attribute clickPoint |
void |
resizeFrm()
Resize the frame of the current GraphDrawPanel |
protected void |
selectElements(int caretPosition)
|
protected void |
setElemsInTxtFldVEdge()
|
protected void |
setIndividualElements()
|
protected void |
setTypeElements()
It should be redefined by subclasses of GraphDrawPanel |
(package private) void |
showLstStates()
|
protected void |
treatVEdge(java.lang.String txt)
|
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. |
Methods inherited from class aminePlatform.guis.graphDrawing.GraphDrawPanel |
canNodeBeEdited, clear, cut, finalize, getBorderForSelection, getFontSize, onMouseClicked, onMouseEntered, onMousePressed, rearrange, selectAll, selectVEdge, selectVEdgeName, selectVNode, setCursorTolinkMode, setCursorToModeCmd, setCursorToModeEdit, setCursorToModePaste, setCursorToModeZoom, setCursorTovedgeMode, setCursorTovnodeMode, SetFontSize, SetZoomScale, unselectTracker, unselectVEdge, unselectVEdgeName, unselectVNode, updateCursorMode, updateDeletingEdge, updateItemsNdeCtxtMn, updatePanels, updateScroll, updateTreePanel, 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 |
static final java.awt.Font fontTxtFldBold
CGDrawPanel.JConceptStates lstStates
public javax.swing.DefaultListModel model
public CGDrawPanel.LabelConc labelConcRef
GraphDrawFrame graphDrawFrame
Constructor Detail |
public CGDrawPanel(GraphDrawFrame graphDrawFrame, Lexicon lexicon)
Method Detail |
public void InitRelEnConstr()
void showLstStates()
public boolean graphWithDrawingInf(Graph graph)
graphWithDrawingInf
in class GraphDrawPanel
public void paintComponent(java.awt.Graphics g)
GraphDrawPanel
paintComponent
in class GraphDrawPanel
g
- Graphicspublic void copy()
GraphDrawPanel
copy
in class GraphDrawPanel
public void paste()
GraphDrawPanel
paste
in class GraphDrawPanel
protected void cutWithoutBuffering()
cutWithoutBuffering
in class GraphDrawPanel
public void ExeTreatVnode(java.lang.String contenu) throws java.lang.Exception
ExeTreatVnode
in class GraphDrawPanel
java.lang.Exception
protected void treatVEdge(java.lang.String txt)
treatVEdge
in class GraphDrawPanel
protected boolean insertText(java.lang.String s2Insert, int insertPosition)
insertText
in class GraphDrawPanel
protected java.lang.String getTxtInEdition(int caretPosition)
getTxtInEdition
in class GraphDrawPanel
protected void selectElements(int caretPosition)
selectElements
in class GraphDrawPanel
protected void setTypeElements()
GraphDrawPanel
setTypeElements
in class GraphDrawPanel
protected void setIndividualElements()
setIndividualElements
in class GraphDrawPanel
protected void setElemsInTxtFldVEdge()
setElemsInTxtFldVEdge
in class GraphDrawPanel
protected void onMouseReleased(java.awt.event.MouseEvent e)
onMouseReleased
in class GraphDrawPanel
public Edge createEdge()
GraphDrawPanel
createEdge
in class GraphDrawPanel
public Graph createGraph()
GraphDrawPanel
createGraph
in class GraphDrawPanel
public void drawConcept(java.awt.Graphics g, Concept concept)
public boolean drawVNode(java.awt.Graphics g, VisualNode vnode, Lexicon lexicon)
GraphDrawPanel
drawVNode
in class GraphDrawPanel
void drawState(java.awt.Graphics g, VisualNode vnode)
public void update(VisualNode vnode, java.lang.String contenu, java.awt.Rectangle rectangle) throws java.lang.Exception
GraphDrawPanel
update
in class GraphDrawPanel
java.lang.Exception
public void resizeFrm()
public void displayContent(VisualNode vnode)
GraphDrawPanel
displayContent
in class GraphDrawPanel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |