org.argouml.uml.diagram.collaboration.ui
Class SelectionClassifierRole
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.collaboration.ui.SelectionClassifierRole
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
- public class SelectionClassifierRole
- extends SelectionWButtons
- See Also:
- Serialized Form
Fields inherited from class org.tigris.gef.base.Selection |
_content, BORDER_WIDTH, HAND_SIZE |
Constructor Summary |
SelectionClassifierRole(org.tigris.gef.presentation.Fig f)
Construct a new SelectionClassifierRole for the given Fig |
Method Summary |
protected java.lang.Object |
createEdgeAbove(org.tigris.gef.graph.MutableGraphModel mgm,
java.lang.Object newNode)
Subclasses should override this method if they want to provide a quickbutton above
the _content fig. |
protected java.lang.Object |
createEdgeLeft(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
Subclasses should override this method if they want to provide a quickbutton at the left
of the _content fig. |
protected java.lang.Object |
createEdgeRight(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
Subclasses should override this method if they want to provide a quickbutton at the right
of the _content fig. |
protected java.lang.Object |
createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel gm)
To enable this we need to add an icon. |
protected java.lang.Object |
createEdgeUnder(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
Subclasses should override this method if they want to provide a quickbutton under
the _content fig. |
void |
dragHandle(int mX,
int mY,
int anX,
int anY,
org.tigris.gef.presentation.Handle hand)
|
protected java.lang.Object |
getNewNode(int buttonCode)
create a new ClassifierRole object. |
void |
hitHandle(java.awt.Rectangle r,
org.tigris.gef.presentation.Handle h)
|
void |
paintButtons(java.awt.Graphics g)
Paint the handles at the four corners and midway along each edge
of the bounding box. |
void |
setIncomingButtonEnabled(boolean b)
|
void |
setOutgoingButtonEnabled(boolean b)
|
Methods inherited from class org.argouml.uml.diagram.ui.SelectionWButtons |
buttonClicked, getBounds, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, mouseEntered, mouseExited, mousePressed, mouseReleased, 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 |
cat
protected static org.apache.log4j.Category cat
assocrole
public static javax.swing.Icon assocrole
selfassoc
public static javax.swing.Icon selfassoc
_showIncoming
protected boolean _showIncoming
_showOutgoing
protected boolean _showOutgoing
SelectionClassifierRole
public SelectionClassifierRole(org.tigris.gef.presentation.Fig f)
- Construct a new SelectionClassifierRole for the given Fig
setIncomingButtonEnabled
public void setIncomingButtonEnabled(boolean b)
setOutgoingButtonEnabled
public void setOutgoingButtonEnabled(boolean b)
hitHandle
public void hitHandle(java.awt.Rectangle r,
org.tigris.gef.presentation.Handle h)
- 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
getNewNode
protected java.lang.Object getNewNode(int buttonCode)
- create a new ClassifierRole object.
- Overrides:
getNewNode
in class SelectionWButtons
- See Also:
SelectionWButtons.getNewNode(int)
createEdgeAbove
protected java.lang.Object createEdgeAbove(org.tigris.gef.graph.MutableGraphModel mgm,
java.lang.Object newNode)
- Description copied from class:
SelectionWButtons
- Subclasses should override this method if they want to provide a quickbutton above
the _content fig. This method returns the edge (modelelement) that should be drawn in the
case such a quickbutton was pressed.
- Overrides:
createEdgeAbove
in class SelectionWButtons
- See Also:
SelectionWButtons.createEdgeAbove(org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
createEdgeLeft
protected java.lang.Object createEdgeLeft(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
- Description copied from class:
SelectionWButtons
- Subclasses should override this method if they want to provide a quickbutton at the left
of the _content fig. This method returns the edge (modelelement) that should be drawn in the
case such a quickbutton was pressed.
- Overrides:
createEdgeLeft
in class SelectionWButtons
- See Also:
SelectionWButtons.createEdgeLeft(org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
createEdgeRight
protected java.lang.Object createEdgeRight(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
- Description copied from class:
SelectionWButtons
- Subclasses should override this method if they want to provide a quickbutton at the right
of the _content fig. This method returns the edge (modelelement) that should be drawn in the
case such a quickbutton was pressed.
- Overrides:
createEdgeRight
in class SelectionWButtons
- See Also:
SelectionWButtons.createEdgeRight(org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
createEdgeToSelf
protected java.lang.Object createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel gm)
- To enable this we need to add an icon.
- Overrides:
createEdgeToSelf
in class SelectionWButtons
- See Also:
SelectionWButtons.createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel)
createEdgeUnder
protected java.lang.Object createEdgeUnder(org.tigris.gef.graph.MutableGraphModel gm,
java.lang.Object newNode)
- Description copied from class:
SelectionWButtons
- Subclasses should override this method if they want to provide a quickbutton under
the _content fig. This method returns the edge (modelelement) that should be drawn in the
case such a quickbutton was pressed.
- Overrides:
createEdgeUnder
in class SelectionWButtons
- See Also:
SelectionWButtons.createEdgeUnder(org.tigris.gef.graph.MutableGraphModel, java.lang.Object)