org.argouml.uml.diagram.sequence.ui
Class SelectionClassifierRole

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.sequence.ui.SelectionClassifierRole
All Implemented Interfaces:
EventListener, KeyListener, MouseListener, MouseMotionListener, Serializable

public class SelectionClassifierRole
extends SelectionNodeClarifiers

A custom select object to handle the special requirements of reshaping a classifier role.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.Selection
BORDER_WIDTH, HAND_SIZE
 
Constructor Summary
SelectionClassifierRole(Fig f)
          The constructor.
 
Method Summary
 void dragHandle(int mX, int mY, int anX, int anY, Handle hand)
          Make sure that the north facing handles cannot be dragged as part of a resize.
protected  Object getNewNode(int buttonCode)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.SelectionNodeClarifiers
paint, paintButtons
 
Methods inherited from class org.tigris.gef.base.SelectionButtons
buttonClicked, createEdgeAbove, createEdgeLeft, createEdgeRight, createEdgeToSelf, createEdgeUnder, 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.SelectionResize
hitHandle
 
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

SelectionClassifierRole

public SelectionClassifierRole(Fig f)
The constructor.

Parameters:
f - the fig
Method Detail

dragHandle

public void dragHandle(int mX,
                       int mY,
                       int anX,
                       int anY,
                       Handle hand)
Make sure that the north facing handles cannot be dragged as part of a resize.

See Also:
Selection.dragHandle(int, int, int, int, org.tigris.gef.presentation.Handle)

getNewNode

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


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook