org.argouml.uml.diagram.static_structure.ui
Class SelectionStereotype
java.lang.Object
org.tigris.gef.base.Selection
org.tigris.gef.base.SelectionResize
org.tigris.gef.base.SelectionButtons
org.argouml.uml.diagram.ui.SelectionNodeClarifiers
org.argouml.uml.diagram.static_structure.ui.SelectionStereotype
- All Implemented Interfaces:
- EventListener, KeyListener, MouseListener, MouseMotionListener, Serializable
- public class SelectionStereotype
- extends SelectionNodeClarifiers
The buttons on selection for a Stereotype.
TODO: Find a way to hide the OperationsCompartment
on the FigClass of the created metaclass.
- See Also:
- Serialized Form
| Methods inherited from class org.tigris.gef.base.SelectionButtons |
buttonClicked, createEdgeLeft, createEdgeRight, createEdgeToSelf, getBounds, getPressedButton, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, isPaintButtons, 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 |
SelectionStereotype
public SelectionStereotype(Fig f)
- Construct a new SelectionStereotype for the given Fig.
- Parameters:
f - the given fig
hitHandle
public void hitHandle(Rectangle r,
Handle h)
- Return a handle ID for the handle under the mouse, or -1 if
none.
- 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(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)
mouseEntered
public void mouseEntered(MouseEvent me)
- See Also:
MouseListener.mouseEntered(java.awt.event.MouseEvent)
getNewNode
protected Object getNewNode(int buttonCode)
- Overrides:
getNewNode in class SelectionNodeClarifiers
- See Also:
SelectionButtons.getNewNode(int)
getNewNodeType
protected Object getNewNodeType(int buttonCode)
- Parameters:
buttonCode - the code for the pressed button
- Returns:
- the new object type
createEdgeAbove
protected Object createEdgeAbove(MutableGraphModel mgm,
Object newNode)
- See Also:
SelectionButtons.createEdgeAbove(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
createEdgeUnder
protected Object createEdgeUnder(MutableGraphModel mgm,
Object newNode)
- See Also:
SelectionButtons.createEdgeUnder(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)