|
|||||||||||
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.static_structure.ui.SelectionClass
Field Summary | |
protected boolean |
_useComposite
|
static javax.swing.Icon |
assoc
|
protected static org.apache.log4j.Category |
cat
|
static javax.swing.Icon |
compos
|
static javax.swing.Icon |
inherit
|
static javax.swing.Icon |
selfassoc
|
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 | |
SelectionClass(org.tigris.gef.presentation.Fig f)
Construct a new SelectionClass 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 mgm,
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 mgm,
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 mgm)
Subclasses should override this method if they want to provide a quickbutton for selfassociation. |
protected java.lang.Object |
createEdgeUnder(org.tigris.gef.graph.MutableGraphModel mgm,
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)
Implementors should return a new node for adding via the buttons. |
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 |
mouseEntered(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 |
buttonClicked, getBounds, hideButtons, hitAbove, hitBelow, hitLeft, hitRight, intersectsRect, 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 |
Field Detail |
protected static org.apache.log4j.Category cat
public static javax.swing.Icon inherit
public static javax.swing.Icon assoc
public static javax.swing.Icon compos
public static javax.swing.Icon selfassoc
protected boolean _useComposite
Constructor Detail |
public SelectionClass(org.tigris.gef.presentation.Fig f)
Method Detail |
public void hitHandle(java.awt.Rectangle r, org.tigris.gef.presentation.Handle h)
0-------1-------2 | | 3 4 | | 5-------6-------7
public void paintButtons(java.awt.Graphics g)
paintButtons
in class SelectionWButtons
public void dragHandle(int mX, int mY, int anX, int anY, org.tigris.gef.presentation.Handle hand)
public void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class SelectionWButtons
protected java.lang.Object getNewNode(int buttonCode)
SelectionWButtons
getNewNode
in class SelectionWButtons
SelectionWButtons.getNewNode(int)
protected java.lang.Object createEdgeAbove(org.tigris.gef.graph.MutableGraphModel mgm, java.lang.Object newNode)
SelectionWButtons
createEdgeAbove
in class SelectionWButtons
mgm
- newNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeAbove(org.tigris.gef.graph.MutableGraphModel,
java.lang.Object)
protected java.lang.Object createEdgeLeft(org.tigris.gef.graph.MutableGraphModel mgm, java.lang.Object newNode)
SelectionWButtons
createEdgeLeft
in class SelectionWButtons
mgm
- newNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeLeft(org.tigris.gef.graph.MutableGraphModel,
java.lang.Object)
protected java.lang.Object createEdgeRight(org.tigris.gef.graph.MutableGraphModel mgm, java.lang.Object newNode)
SelectionWButtons
createEdgeRight
in class SelectionWButtons
mgm
- newNode
- The node (modelelement) created by pressing the
quickbutton
SelectionWButtons.createEdgeRight(org.tigris.gef.graph.MutableGraphModel,
java.lang.Object)
protected java.lang.Object createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel mgm)
SelectionWButtons
createEdgeToSelf
in class SelectionWButtons
mgm
-
SelectionWButtons.createEdgeToSelf(org.tigris.gef.graph.MutableGraphModel)
protected java.lang.Object createEdgeUnder(org.tigris.gef.graph.MutableGraphModel mgm, java.lang.Object newNode)
SelectionWButtons
createEdgeUnder
in class SelectionWButtons
mgm
- newNode
- 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-2003 (20030829) | ArgoUML Project Home | ArgoUML Cookbook |