svn commit: r16235 - trunk/src/argouml-app/src/org/argouml/uml/diagram/UmlDiagramRenderer.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-12-03 12:58:56-0800
New Revision: 16235

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

Log:
Deprecate factories which use 0-arg constructors

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/UmlDiagramRenderer.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/UmlDiagramRenderer.java?view=diff&pathrev=16235&r1=16234&r2=16235
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/UmlDiagramRenderer.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/UmlDiagramRenderer.java	2008-12-03 12:58:56-0800
@@ -103,12 +103,13 @@
 public abstract class UmlDiagramRenderer
     implements GraphNodeRenderer, GraphEdgeRenderer {
 
-    /*
-     * @see org.tigris.gef.graph.GraphNodeRenderer#getFigNodeFor(
-     *         java.lang.Object, int, int, java.util.Map)
+
+    /**
+     * @deprecated for 0.27.3 by tfmorris. Only used by
+     *             {@link DiagramFactory#createRenderingElement(Object, Object)}
+     *             which is itself unused (and now deprecated).
      */
-    // TODO: Is this supposed to be deprecated?  It's only used by
-    // DiagramFactory.createRenderingElement, which is itself unused
+    @Deprecated
     public FigNode getFigNodeFor(
 	    Object node, int x, int y,
 	    Map styleAttributes) {
@@ -240,9 +241,13 @@
     }
 
 
-    /*
+
+    /**
+     * @deprecated for 0.27.3 by tfmorris.  Use method of same name which takes
+     * a GraphModel argument in the subclasses of this class.
      * @see org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor(java.lang.Object, java.util.Map)
      */
+    @Deprecated
     public FigEdge getFigEdgeFor(Object edge, Map styleAttributes) {
         if (edge == null) {
             throw new IllegalArgumentException("A model edge must be supplied");

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

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.