svn commit: r17420 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java

Michiel van der Wulp <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2009-10-22 00:31:14-0700
New Revision: 17420

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

Log:
Issue 5876: Added a remark and an assert.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java?view=diff&pathrev=17420&r1=17419&r2=17420
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	2009-10-22 00:31:14-0700
@@ -2353,7 +2353,22 @@
         getNameFig().setRightMargin(
                 floatingStereotypes.size() * (ICON_WIDTH + 5));
     }
-    
+
+    /**
+     * Returns the minimum size of the Fig. This is the smallest size that the
+     * user can make this Fig by dragging. <p>
+     *  
+     * Do not call this function if the Fig is not resizable!
+     * In ArgoUML we decided that it is not needed to implement 
+     * suitable getMinimumSize() methods
+     * for Figs that are not resizable.
+     */
+    @Override
+    public Dimension getMinimumSize() {
+        assert isResizable();
+        return super.getMinimumSize();
+    }
+
     /**
      * Replaces {@link #setBoundsImpl(int, int, int, int)}.
      *

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

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.