|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SelectionResize | +--org.argouml.uml.diagram.ui.SelectionNodeClarifiers | +--org.argouml.uml.diagram.ui.SelectionWButtons
Field Summary | |
---|---|
protected boolean |
_paintButtons
|
protected int |
_pressedButton
|
static boolean |
_showRapidButtons
|
static int |
IMAGE_SIZE
|
static int |
MARGIN
|
static int |
Num_Button_Clicks
|
static java.awt.Color |
PRESSED_COLOR
|
Constructor Summary | |
---|---|
SelectionWButtons(Fig f)
Construct a new SelectionWButtons for the given Fig |
Method Summary | |
---|---|
void |
buttonClicked(int buttonCode)
|
protected java.lang.Object |
createEdgeAbove(MutableGraphModel gm,
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(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(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(MutableGraphModel gm)
Subclasses should override this method if they want to provide a quickbutton for selfassociation. |
protected java.lang.Object |
createEdgeUnder(MutableGraphModel gm,
java.lang.Object newNode)
Subclasses should override this method if they want to provide a quickbutton under the _content fig. |
java.awt.Rectangle |
getBounds()
|
protected abstract java.lang.Object |
getNewNode(int buttonCode)
Implementors should return a new node for adding via the buttons. |
void |
hideButtons()
Dont show buttons while the user is moving the Class. |
boolean |
hitAbove(int x,
int y,
int w,
int h,
java.awt.Rectangle r)
|
boolean |
hitBelow(int x,
int y,
int w,
int h,
java.awt.Rectangle r)
|
boolean |
hitLeft(int x,
int y,
int w,
int h,
java.awt.Rectangle r)
|
boolean |
hitRight(int x,
int y,
int w,
int h,
java.awt.Rectangle r)
|
boolean |
intersectsRect(java.awt.Rectangle r,
int x,
int y,
int w,
int h)
|
void |
mouseEntered(java.awt.event.MouseEvent me)
|
void |
mouseExited(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
void |
paint(java.awt.Graphics g)
Paint the handles at the four corners and midway along each edge of the bounding box. |
void |
paintButton(javax.swing.Icon i,
java.awt.Graphics g,
int x,
int y,
int hi)
|
void |
paintButtonAbove(javax.swing.Icon i,
java.awt.Graphics g,
int x,
int y,
int hi)
|
void |
paintButtonBelow(javax.swing.Icon i,
java.awt.Graphics g,
int x,
int y,
int hi)
|
void |
paintButtonLeft(javax.swing.Icon i,
java.awt.Graphics g,
int x,
int y,
int hi)
|
void |
paintButtonRight(javax.swing.Icon i,
java.awt.Graphics g,
int x,
int y,
int hi)
|
abstract void |
paintButtons(java.awt.Graphics g)
|
protected boolean |
placeFig(Fig figToPlace,
LayerPerspective layerToPlaceOn,
int x,
int y,
java.awt.Rectangle bumpRect)
Places a fig on the canvas in the correct position. |
static void |
toggleShowRapidButtons()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IMAGE_SIZE
public static final int MARGIN
public static final java.awt.Color PRESSED_COLOR
public static int Num_Button_Clicks
public static boolean _showRapidButtons
protected boolean _paintButtons
protected int _pressedButton
Constructor Detail |
public SelectionWButtons(Fig f)
Method Detail |
public static void toggleShowRapidButtons()
public boolean hitAbove(int x, int y, int w, int h, java.awt.Rectangle r)
public boolean hitBelow(int x, int y, int w, int h, java.awt.Rectangle r)
public boolean hitLeft(int x, int y, int w, int h, java.awt.Rectangle r)
public boolean hitRight(int x, int y, int w, int h, java.awt.Rectangle r)
public boolean intersectsRect(java.awt.Rectangle r, int x, int y, int w, int h)
public void paint(java.awt.Graphics g)
paint
in class SelectionNodeClarifiers
public abstract void paintButtons(java.awt.Graphics g)
public void paintButtonAbove(javax.swing.Icon i, java.awt.Graphics g, int x, int y, int hi)
public void paintButtonBelow(javax.swing.Icon i, java.awt.Graphics g, int x, int y, int hi)
public void paintButtonLeft(javax.swing.Icon i, java.awt.Graphics g, int x, int y, int hi)
public void paintButtonRight(javax.swing.Icon i, java.awt.Graphics g, int x, int y, int hi)
public void paintButton(javax.swing.Icon i, java.awt.Graphics g, int x, int y, int hi)
public java.awt.Rectangle getBounds()
public void hideButtons()
public void buttonClicked(int buttonCode)
public void mousePressed(java.awt.event.MouseEvent me)
public void mouseReleased(java.awt.event.MouseEvent me)
public void mouseEntered(java.awt.event.MouseEvent me)
public void mouseExited(java.awt.event.MouseEvent me)
protected boolean placeFig(Fig figToPlace, LayerPerspective layerToPlaceOn, int x, int y, java.awt.Rectangle bumpRect)
figToPlace
- The figure one wishes to place on a diagramlayerToPlaceOn
- The layer that contains the figsx
- The x coordinate where one wishes to place the figy
- The y coordinate where one wishes to place the figbumpRect
- The rectangle that should be avoided since
there can be other figs.
protected abstract java.lang.Object getNewNode(int buttonCode)
protected java.lang.Object createEdgeAbove(MutableGraphModel gm, java.lang.Object newNode)
gm
- newNode
- The node (modelelement) created by pressing the
quickbutton
protected java.lang.Object createEdgeLeft(MutableGraphModel gm, java.lang.Object newNode)
gm
- newNode
- The node (modelelement) created by pressing the
quickbutton
protected java.lang.Object createEdgeRight(MutableGraphModel gm, java.lang.Object newNode)
gm
- newNode
- The node (modelelement) created by pressing the
quickbutton
protected java.lang.Object createEdgeUnder(MutableGraphModel gm, java.lang.Object newNode)
gm
- newNode
- The node (modelelement) created by pressing the
quickbutton
protected java.lang.Object createEdgeToSelf(MutableGraphModel gm)
gm
-
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |