|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SelectionReshape | +--org.argouml.uml.diagram.ui.SelectionEdgeClarifiers | +--org.argouml.uml.diagram.ui.SelectionRerouteEdge
A general class for rerouting edges, achieved by delegating the re-routing logic to the graphmodels; extends functionality in SelectionEdgeClarifiers.
If a gragphmodel does not override canChangeConnectedNode() then rerouting is not possible and argo should behave as if rerouting had never been implemented.
Constructor Summary | |
---|---|
SelectionRerouteEdge(FigEdgeModelElement feme)
Creates a new instance of SelectionRerouteEdge |
Method Summary | |
---|---|
void |
mouseDragged(java.awt.event.MouseEvent me)
need to 'arm' the rerouting capability with mouseDragged(). |
void |
mousePressed(java.awt.event.MouseEvent me)
set up for re-routing. |
void |
mouseReleased(java.awt.event.MouseEvent me)
perform re-routing if src/dest nodes have changed. |
Methods inherited from class org.argouml.uml.diagram.ui.SelectionEdgeClarifiers |
---|
paint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectionRerouteEdge(FigEdgeModelElement feme)
Method Detail |
public void mousePressed(java.awt.event.MouseEvent me)
public void mouseDragged(java.awt.event.MouseEvent me)
need to 'arm' the rerouting capability with mouseDragged().
don't arm if the edtior's current mode is a figedge create mode, because once a new edge has been created it is not deselected, therefore on the next create an unwanted reroute is performed.
public void mouseReleased(java.awt.event.MouseEvent me)
perform re-routing if src/dest nodes have changed.
this method needs to be 'armed' by a previous mouseDragged() to avoid the situation where the user just clicks on the message then clicks on some unrelated Fig, without moving the association...
TODO: improve the fig finding algorithm to find the top most fig in the layer. will be useful for nested states in a statechart.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |