org.argouml.uml.diagram.ui
Class ArgoJGraph

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.tigris.gef.graph.presentation.JGraph
                      extended byorg.argouml.uml.diagram.ui.ArgoJGraph
All Implemented Interfaces:
Accessible, Cloneable, ImageObserver, MenuContainer, Serializable

Deprecated. Bob Tarling 11 Jan 2005. This has been corrected in GEF. Please do not fix GEF in ArgoUML, contribute to GEF project. Because of this we currently miss out on GEF features. Remove this on the next GEF release after 0.10.10

class ArgoJGraph
extends org.tigris.gef.graph.presentation.JGraph

UMLJGraph is a JGraph that updates the Figs representing modelelements if they are in the clipping area.

Since:
Apr 13, 2003

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class org.tigris.gef.graph.presentation.JGraph
_currentDiagramId
 
Fields inherited from class javax.swing.JPanel
 
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
ArgoJGraph()
          Deprecated. Make a new JGraph with a new DefaultGraphModel.
ArgoJGraph(org.tigris.gef.base.Diagram d)
          Deprecated. as of 0.17.2 by Linus Tolke. This function is not used. Use one of the other constructors instead.
ArgoJGraph(org.tigris.gef.base.Editor ed)
          Deprecated. as of 0.17.2 by Linus Tolke. This function will be made private. Use one of the other constructors instead.
ArgoJGraph(org.tigris.gef.graph.GraphModel gm)
          Deprecated. Make a new JGraph with the given GraphModel.
 
Method Summary
 int hashCode()
          Deprecated.  
 
Methods inherited from class org.tigris.gef.graph.presentation.JGraph
addGraphSelectionListener, addKeyListener, addModeChangeListener, addMouseListener, addMouseMotionListener, bindKey, clone, deselect, deselectAll, equals, establishAlternateMouseWheelListener, getCurrentDiagramId, getDefaultSize, getEditor, getGraphEdgeRenderer, getGraphModel, getGraphNodeRenderer, getViewPosition, initKeys, isFocusTraversable, isManagingFocus, layoutGraph, removeGraphSelectionListener, removeModeChangeListener, select, select, selectByOwner, selectByOwnerOrFig, selectByOwnerOrNoChange, selectedFigs, setDefaultSize, setDefaultSize, setDiagram, setDrawingSize, setDrawingSize, setGraphEdgeRenderer, setGraphModel, setGraphNodeRenderer, setViewPosition, setVisible, toggleItem, toggleItems, updateDrawingSizeToIncludeAllFigs
 
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, 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, 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, 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, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArgoJGraph

public ArgoJGraph()
Deprecated. 
Make a new JGraph with a new DefaultGraphModel.

See Also:
DefaultGraphModel

ArgoJGraph

public ArgoJGraph(org.tigris.gef.base.Diagram d)
Deprecated. as of 0.17.2 by Linus Tolke. This function is not used. Use one of the other constructors instead.

Make a new JGraph with a the GraphModel and Layer from the given Diagram.

Parameters:
d - The Diagram.

ArgoJGraph

public ArgoJGraph(org.tigris.gef.graph.GraphModel gm)
Deprecated. 
Make a new JGraph with the given GraphModel.

Parameters:
gm - The given GraphModel.

ArgoJGraph

public ArgoJGraph(org.tigris.gef.base.Editor ed)
Deprecated. as of 0.17.2 by Linus Tolke. This function will be made private. Use one of the other constructors instead.

Make a new JGraph with the given Editor. All JGraph contructors eventually call this contructor.

Parameters:
ed - The given Editor.
Method Detail

hashCode

public int hashCode()
Deprecated. 
See Also:
TODO: Investigate further:

According to a mail from GZ (6th November 2004) on the dev list, {@link javax.swing.RepaintManager} puts these objects in some kind of data structure that uses this function. Assuming that there is a reason for this we dare not sabotage this by short-circuiting this to 0. Instead we rely on that {@link org.tigris.gef.graph.presentation.JGraph#setDiagram( org.tigris.gef.base.Diagram)} actually removes this object from the {@link javax.swing.RepaintManager} and registers it again when resetting the diagram id.

This is based on the assumption that the function {@link #equals(Object)} must work as it does. I (Linus) have not understood why it must. Could someone please explain that in the javadoc.



ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook