Author: bobtarling
Date: 2011-04-17 10:13:27-0700
New Revision: 19247
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java
Log:
Use FigNode instead of FigNodeModelElement
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java?view=diff&pathrev=19247&r1=19246&r2=19247
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java 2011-04-17 10:13:27-0700
@@ -56,6 +56,7 @@
import org.tigris.gef.presentation.Fig;
import org.tigris.gef.presentation.FigEdge;
+import org.tigris.gef.presentation.FigNode;
/**
* A general class for rerouting edges, achieved by delegating
@@ -75,13 +76,13 @@
* Used to determine if the association is now to self,
* in which case The association needs automatic layout.
*/
- private FigNodeModelElement sourceFig;
+ private FigNode sourceFig;
/**
* Used to determine if the association is now to self,
* in which case The association needs automatic layout.
*/
- private FigNodeModelElement destFig;
+ private FigNode destFig;
/**
* The re-routing capability it armed if the mouse was previously
@@ -122,9 +123,9 @@
// calculate the source and dest figs for to self assoc
sourceFig =
- (FigNodeModelElement) ((FigEdge) getContent()).getSourceFigNode();
+ ((FigEdge) getContent()).getSourceFigNode();
destFig =
- (FigNodeModelElement) ((FigEdge) getContent()).getDestFigNode();
+ ((FigEdge) getContent()).getDestFigNode();
final Rectangle mousePosition =
new Rectangle(me.getX() - 5, me.getY() - 5, 10, 10);
@@ -212,7 +213,7 @@
UMLMutableGraphSupport mgm =
(UMLMutableGraphSupport) editor.getGraphModel();
- FigNodeModelElement oldFig = null;
+ FigNode oldFig = null;
boolean isSource = false;
if (pointIndex == 0) {
oldFig = sourceFig;
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2720798
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.