svn commit: r14816 - trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-05-28 11:22:57-0700
New Revision: 14816

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

Log:
Improved comments.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java?view=diff&rev=14816&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java&r1=14815&r2=14816
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumerationLiteral.java	2008-05-28 11:22:57-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 2007 The Regents of the University of California. All
+// Copyright (c) 2007-2008 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -35,6 +35,22 @@
  */
 public class FigEnumerationLiteral extends CompartmentFigText {
 
+    /**
+     * Build a new Enumeration Literal figText of the given dimensions, 
+     * within the compartment described by <code>aFig</code>.
+     * <p>
+     * 
+     * <em>Warning</em>. Won't work properly if <code>aFig</code> is null.
+     * A warning is printed.
+     * <p>
+     * 
+     * @param x X coordinate of the top left of the FigText.
+     * @param y Y coordinate of the top left of the FigText.
+     * @param w Width of the FigText.
+     * @param h Height of the FigText.
+     * @param aFig The figure describing the whole compartment
+     * @param np The notationProvider. See NotationProviderFactory2.
+     */
     public FigEnumerationLiteral(int x, int y, int w, int h, Fig aFig, 
             NotationProvider np) {
         super(x, y, w, h, aFig, np);
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.