svn commit: r16599 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java

Dave Thompson <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: dthompson
Date: 2009-01-14 11:41:08-0800
New Revision: 16599

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java

Log:
STARTED - task 1048: Allow manual adjustment of text label positions on edges 
http://argouml.tigris.org/issues/show_bug.cgi?id=1048

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java?view=diff&pathrev=16599&r1=16598&r2=16599
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/SelectionEdgeClarifiers.java	2009-01-14 11:41:08-0800
@@ -28,6 +28,7 @@
 
 import org.tigris.gef.base.Globals;
 import org.tigris.gef.base.PathItemPlacementStrategy;
+import org.tigris.gef.base.SelectionManager;
 import org.tigris.gef.base.SelectionReshape;
 import org.tigris.gef.presentation.Fig;
 import org.tigris.gef.presentation.FigEdge;
@@ -40,10 +41,11 @@
  */
 public class SelectionEdgeClarifiers extends SelectionReshape {
 
+    ////////////////////////////////////////////////////////////////
+    // constructors
 
-    /**
-     * Construct a new SelectionEdgeClarifiers for the given Fig
-     * 
+    /** Construct a new SelectionEdgeClarifiers for the given Fig
+     *
      * @param f the given fig
      */
     public SelectionEdgeClarifiers(Fig f) { super(f); }
@@ -60,10 +62,10 @@
     public void paint(Graphics g) {
         super.paint(g);
         int selectionCount =
-            Globals.curEditor().getSelectionManager().getSelections().size();
+            Globals.curEditor().getSelectionManager().selections().size();
         if (selectionCount == 1) {
-            FigEdge edge = (FigEdge) getContent();
-            ((Clarifiable) edge).paintClarifiers(g);
+            FigEdgeModelElement edge = (FigEdgeModelElement) getContent();
+            edge.paintClarifiers(g);
 	    for (PathItemPlacementStrategy strategy
 	            : edge.getPathItemStrategies()) {
 	        strategy.paint(g);
@@ -71,4 +73,5 @@
 	}
     }
 
-}
+} /* end class SelectionEdgeClarifiers */
+

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1024727

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.