|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
The selection buttons for a classifier role.
Field Summary | |
private static Icon |
assocrole
|
private static Logger |
LOG
|
private static Icon |
selfassoc
|
private boolean |
showIncoming
|
private boolean |
showOutgoing
|
Fields inherited from class org.argouml.uml.diagram.ui.SelectionWButtons |
|
Fields inherited from class org.tigris.gef.base.SelectionResize |
|
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 Object |
createEdgeAbove(org.tigris.gef.graph.MutableGraphModel mgm,
Object newNode)
Subclasses should override this method if they want to provide a quickbutton above the _content fig. |
protected Object |
createEdgeLeft(org.tigris.gef.graph.MutableGraphModel gm,
Object newNode)
Subclasses should override this method if they want to provide a quickbutton at the left of the _content fig. |
protected Object |
createEdgeRight(org.tigris.gef.graph.MutableGraphModel gm,
Object newNode)
Subclasses should override this method if they want to provide a quickbutton at the right of the _content fig. |
protected Object |
createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel gm)
To enable this we need to add an icon. |
protected Object |
createEdgeUnder(org.tigris.gef.graph.MutableGraphModel gm,
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 Object |
getNewNode(int buttonCode)
Create a new ClassifierRole object. |
void |
hitHandle(Rectangle r,
org.tigris.gef.presentation.Handle h)
|
void |
paintButtons(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, getPressedButton, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, isPaintButtons, mouseEntered, mouseExited, mousePressed, mouseReleased, paint, paintButton, paintButtonAbove, paintButtonBelow, paintButtonLeft, paintButtonRight, placeFig, setPaintButtons, setPressedButton, toggleShowRapidButtons |
Methods inherited from class org.tigris.gef.base.SelectionResize |
|
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, stuffBounds, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private static Icon assocrole
private static Icon selfassoc
private boolean showIncoming
private boolean showOutgoing
Constructor Detail |
public SelectionClassifierRole(org.tigris.gef.presentation.Fig f)
f
- The given Fig.Method Detail |
public void setIncomingButtonEnabled(boolean b)
b
- true if the incoming button is enabledpublic void setOutgoingButtonEnabled(boolean b)
b
- true if the outgoing button is enabledpublic void hitHandle(Rectangle r, org.tigris.gef.presentation.Handle h)
Selection.hitHandle(java.awt.Rectangle,
org.tigris.gef.presentation.Handle)
public void paintButtons(Graphics g)
SelectionWButtons
paintButtons
in class SelectionWButtons
g
- The Graphics where to paint the buttons.SelectionWButtons.paintButtons(Graphics)
public void dragHandle(int mX, int mY, int anX, int anY, org.tigris.gef.presentation.Handle hand)
Selection.dragHandle(int, int, int, int,
org.tigris.gef.presentation.Handle)
protected Object getNewNode(int buttonCode)
getNewNode
in class SelectionWButtons
buttonCode
- the code (identifier) for the selection button
that was hit
SelectionWButtons.getNewNode(int)
protected Object createEdgeAbove(org.tigris.gef.graph.MutableGraphModel mgm, Object newNode)
SelectionWButtons
createEdgeAbove
in class SelectionWButtons
mgm
- the graphmodelnewNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeAbove(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
protected Object createEdgeLeft(org.tigris.gef.graph.MutableGraphModel gm, Object newNode)
SelectionWButtons
createEdgeLeft
in class SelectionWButtons
gm
- the graphmodelnewNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeLeft(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
protected Object createEdgeRight(org.tigris.gef.graph.MutableGraphModel gm, Object newNode)
SelectionWButtons
createEdgeRight
in class SelectionWButtons
gm
- the graphmodelnewNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeRight(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
protected Object createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel gm)
createEdgeToSelf
in class SelectionWButtons
gm
- the graphmodel
SelectionWButtons.createEdgeToSelf(
org.tigris.gef.graph.MutableGraphModel)
protected Object createEdgeUnder(org.tigris.gef.graph.MutableGraphModel gm, Object newNode)
SelectionWButtons
createEdgeUnder
in class SelectionWButtons
gm
- the graphmodelnewNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeUnder(
org.tigris.gef.graph.MutableGraphModel, java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |