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

java.lang.Object
  |
  +--org.tigris.gef.base.Selection
        |
        +--org.tigris.gef.base.SelectionResize
              |
              +--org.argouml.uml.diagram.ui.SelectionNodeClarifiers
                    |
                    +--org.argouml.uml.diagram.ui.SelectionWButtons
                          |
                          +--org.argouml.uml.diagram.sequence.ui.SelectionSeqObject
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class SelectionSeqObject
extends SelectionWButtons

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Category cat
           
static javax.swing.Icon stimCall
           
static javax.swing.Icon stimRet
           
 
Fields inherited from class org.argouml.uml.diagram.ui.SelectionWButtons
_paintButtons, _pressedButton, _showRapidButtons, IMAGE_SIZE, MARGIN, Num_Button_Clicks, PRESSED_COLOR
 
Fields inherited from class org.tigris.gef.base.Selection
_content, BORDER_WIDTH, HAND_SIZE
 
Constructor Summary
SelectionSeqObject(org.tigris.gef.presentation.Fig f)
          Construct a new SelectionClass for the given Fig
 
Method Summary
 java.lang.Object addLinkStimulusCall(org.tigris.gef.graph.MutableGraphModel mgm, ru.novosoft.uml.behavior.common_behavior.MObject cls, ru.novosoft.uml.behavior.common_behavior.MObject newCls)
           
 java.lang.Object addLinkStimulusReturn(org.tigris.gef.graph.MutableGraphModel mgm, ru.novosoft.uml.behavior.common_behavior.MObject cls, ru.novosoft.uml.behavior.common_behavior.MObject newCls)
           
 void buttonClicked(int buttonCode)
           
 void dragHandle(int mX, int mY, int anX, int anY, org.tigris.gef.presentation.Handle hand)
           
protected  java.lang.Object getNewNode(int buttonCode)
          Not used.
 void hitHandle(java.awt.Rectangle r, org.tigris.gef.presentation.Handle h)
          Return a handle ID for the handle under the mouse, or -1 if none.
 void mouseReleased(java.awt.event.MouseEvent me)
           
 void paintButtons(java.awt.Graphics g)
          Paint the handles at the four corners and midway along each edge of the bounding box.
 
Methods inherited from class org.argouml.uml.diagram.ui.SelectionWButtons
createEdgeAbove, createEdgeLeft, createEdgeRight, createEdgeToSelf, createEdgeUnder, getBounds, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, mouseEntered, mouseExited, mousePressed, paint, paintButton, paintButtonAbove, paintButtonBelow, paintButtonLeft, paintButtonRight, placeFig, toggleShowRapidButtons
 
Methods inherited from class org.tigris.gef.base.Selection
contains, contains, contains, damage, delete, dispose, endTrans, getContent, getContentBounds, getLocation, getLocked, hit, hitHandle, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseMoved, print, reorder, setcontent, startTrans, stuffBounds, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat

stimCall

public static javax.swing.Icon stimCall

stimRet

public static javax.swing.Icon stimRet
Constructor Detail

SelectionSeqObject

public SelectionSeqObject(org.tigris.gef.presentation.Fig f)
Construct a new SelectionClass for the given Fig
Method Detail

hitHandle

public void hitHandle(java.awt.Rectangle r,
                      org.tigris.gef.presentation.Handle h)
Return a handle ID for the handle under the mouse, or -1 if none. TODO: in the future, return a Handle instance or null.

   0-------1-------2
   |               |
   3               4
   |               |
   5-------6-------7
 
Overrides:
hitHandle in class org.tigris.gef.base.SelectionResize

paintButtons

public void paintButtons(java.awt.Graphics g)
Paint the handles at the four corners and midway along each edge of the bounding box.
Overrides:
paintButtons in class SelectionWButtons

dragHandle

public void dragHandle(int mX,
                       int mY,
                       int anX,
                       int anY,
                       org.tigris.gef.presentation.Handle hand)
Overrides:
dragHandle in class org.tigris.gef.base.SelectionResize

buttonClicked

public void buttonClicked(int buttonCode)
Overrides:
buttonClicked in class SelectionWButtons

addLinkStimulusCall

public java.lang.Object addLinkStimulusCall(org.tigris.gef.graph.MutableGraphModel mgm,
                                            ru.novosoft.uml.behavior.common_behavior.MObject cls,
                                            ru.novosoft.uml.behavior.common_behavior.MObject newCls)

addLinkStimulusReturn

public java.lang.Object addLinkStimulusReturn(org.tigris.gef.graph.MutableGraphModel mgm,
                                              ru.novosoft.uml.behavior.common_behavior.MObject cls,
                                              ru.novosoft.uml.behavior.common_behavior.MObject newCls)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Overrides:
mouseReleased in class SelectionWButtons

getNewNode

protected java.lang.Object getNewNode(int buttonCode)
Not used. Only implemented here since SelectionSeqObject does not comply to the rest of the selection with buttons classes.
Overrides:
getNewNode in class SelectionWButtons
See Also:
SelectionWButtons.getNewNode(int)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook