svn commit: r16638 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgePort.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2009-01-17 14:05:18-0800
New Revision: 16638

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

Log:
Issue 5500: Update to new constructor

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgePort.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgePort.java?view=diff&pathrev=16638&r1=16637&r2=16638
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgePort.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgePort.java	2009-01-17 14:05:18-0800
@@ -26,6 +26,7 @@
 
 import java.awt.Rectangle;
 
+import org.argouml.uml.diagram.DiagramSettings;
 import org.tigris.gef.presentation.Fig;
 import org.tigris.gef.presentation.FigCircle;
 import org.tigris.gef.presentation.FigEdge;
@@ -50,15 +51,33 @@
 
     /**
      * Constructor.
+     * 
+     * @deprecated for 0.28 by tfmorris. Use
+     *             {@link #FigEdgePort(Object, Rectangle, DiagramSettings)}.
      */
     @Deprecated
     public FigEdgePort() {
         super();
+        initialize();
+    }
+
+    private void initialize() {
         invisibleAllowed = true;
         bigPort = new FigCircle(0, 0, 1, 1, LINE_COLOR, FILL_COLOR);
         addFig(bigPort);
     }
 
+    /**
+     * @param owner owning uml element
+     * @param bounds ignored
+     * @param settings ignored
+     */
+    public FigEdgePort(Object owner, Rectangle bounds, 
+            DiagramSettings settings) {
+        super(owner, bounds, settings);
+        initialize();
+    }
+    
     /*
      * @see org.tigris.gef.presentation.Fig#hit(java.awt.Rectangle)
      */

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

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.