org.argouml.uml.diagram.deployment.ui
Class SelectionComponent

java.lang.Object
  extended byorg.tigris.gef.base.Selection
      extended byorg.tigris.gef.base.SelectionResize
          extended byorg.tigris.gef.base.SelectionButtons
              extended byorg.argouml.uml.diagram.ui.SelectionNodeClarifiers
                  extended byorg.argouml.uml.diagram.deployment.ui.SelectionComponent
All Implemented Interfaces:
EventListener, KeyListener, MouseListener, MouseMotionListener, Serializable

public class SelectionComponent
extends SelectionNodeClarifiers

The selection buttons for a component.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.Selection
BORDER_WIDTH, HAND_SIZE
 
Constructor Summary
SelectionComponent(Fig f)
          Construct a new SelectionComponent for the given Fig.
 
Method Summary
 Object addCompClassAbove(MutableGraphModel mgm, Object component, Object newComponent)
          Contruct and add a new edge of the given kind: DEPENDENCY.
 Object addCompClassBelow(MutableGraphModel mgm, Object component, Object newComponent)
           
 Object addCompClassLeft(MutableGraphModel mgm, Object component, Object newComponent)
           
 Object addCompClassRight(MutableGraphModel mgm, Object component, Object newComponent)
           
protected  Object createEdgeAbove(MutableGraphModel gm, Object newNode)
           
protected  Object createEdgeLeft(MutableGraphModel gm, Object newNode)
           
protected  Object createEdgeRight(MutableGraphModel gm, Object newNode)
           
protected  Object createEdgeUnder(MutableGraphModel gm, Object newNode)
           
 void dragHandle(int mX, int mY, int anX, int anY, Handle hand)
           
protected  Object getNewNode(int buttonCode)
           
 void hitHandle(Rectangle r, Handle h)
           
 void paintButtons(Graphics g)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers
paint
 
Methods inherited from class org.tigris.gef.base.SelectionButtons
buttonClicked, createEdgeToSelf, getBounds, getPressedButton, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, isPaintButtons, mouseEntered, mouseExited, mousePressed, mouseReleased, paintButton, paintButtonAbove, paintButtonBelow, paintButtonLeft, paintButtonRight, placeFig, setPaintButtons, setPressedButton, toggleShowRapidButtons
 
Methods inherited from class org.tigris.gef.base.Selection
contains, contains, contains, damage, delete, dispose, endTrans, getBounds, getContent, getContentBounds, getLocation, getLocked, hit, hitHandle, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseMoved, print, reorder, setContent, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionComponent

public SelectionComponent(Fig f)
Construct a new SelectionComponent for the given Fig.

Parameters:
f - The given Fig.
Method Detail

hitHandle

public void hitHandle(Rectangle r,
                      Handle h)
See Also:
Selection.hitHandle(java.awt.Rectangle, org.tigris.gef.presentation.Handle)

paintButtons

public void paintButtons(Graphics g)
Overrides:
paintButtons in class SelectionNodeClarifiers
See Also:
SelectionButtons.paintButtons(java.awt.Graphics)

dragHandle

public void dragHandle(int mX,
                       int mY,
                       int anX,
                       int anY,
                       Handle hand)
See Also:
Selection.dragHandle(int, int, int, int, org.tigris.gef.presentation.Handle)

addCompClassAbove

public Object addCompClassAbove(MutableGraphModel mgm,
                                Object component,
                                Object newComponent)
Contruct and add a new edge of the given kind: DEPENDENCY.

Parameters:
mgm - the graphmodel
component - the source component
newComponent - the destination component
Returns:
the added dependency

addCompClassBelow

public Object addCompClassBelow(MutableGraphModel mgm,
                                Object component,
                                Object newComponent)
Parameters:
mgm - the graphmodel
component - the source component
newComponent - the destination component
Returns:
the added dependency

addCompClassRight

public Object addCompClassRight(MutableGraphModel mgm,
                                Object component,
                                Object newComponent)
Parameters:
mgm - the graphmodel
component - the source component
newComponent - the destination component
Returns:
the added dependency

addCompClassLeft

public Object addCompClassLeft(MutableGraphModel mgm,
                               Object component,
                               Object newComponent)
Parameters:
mgm - the graphmodel
component - the source component
newComponent - the destination component
Returns:
the added dependency

getNewNode

protected Object getNewNode(int buttonCode)
Overrides:
getNewNode in class SelectionNodeClarifiers
See Also:
SelectionButtons.getNewNode(int)

createEdgeAbove

protected Object createEdgeAbove(MutableGraphModel gm,
                                 Object newNode)
See Also:
SelectionButtons.createEdgeAbove( org.tigris.gef.graph.MutableGraphModel, java.lang.Object)

createEdgeLeft

protected Object createEdgeLeft(MutableGraphModel gm,
                                Object newNode)
See Also:
SelectionButtons.createEdgeLeft( org.tigris.gef.graph.MutableGraphModel, java.lang.Object)

createEdgeRight

protected Object createEdgeRight(MutableGraphModel gm,
                                 Object newNode)
See Also:
SelectionButtons.createEdgeRight( org.tigris.gef.graph.MutableGraphModel, java.lang.Object)

createEdgeUnder

protected Object createEdgeUnder(MutableGraphModel gm,
                                 Object newNode)
See Also:
SelectionButtons.createEdgeUnder( org.tigris.gef.graph.MutableGraphModel, java.lang.Object)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook