Author: mvw
Date: 2008-07-06 23:28:08-0700
New Revision: 15190
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java
Log:
The remainder of my work for issue 5210.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java?view=diff&rev=15190&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java&r1=15189&r2=15190
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java 2008-07-06 23:28:08-0700
@@ -40,7 +40,6 @@
import org.argouml.application.events.ArgoNotationEvent;
import org.argouml.application.events.ArgoNotationEventListener;
import org.argouml.kernel.Project;
-import org.argouml.model.AssociationChangeEvent;
import org.argouml.model.AttributeChangeEvent;
import org.argouml.model.InvalidElementException;
import org.argouml.model.Model;
@@ -65,11 +64,6 @@
public class FigSingleLineText extends ArgoFigText
implements ArgoNotationEventListener {
- /**
- * The UID.
- */
- private static final long serialVersionUID = -5611216741181499679L;
-
private static final Logger LOG =
Logger.getLogger(FigSingleLineText.class);
@@ -84,9 +78,14 @@
private NotationProvider notationProvider;
private HashMap<String, Object> npArguments = new HashMap<String, Object>();
- /*
- * @see org.tigris.gef.presentation.FigText#FigText(
- * int, int, int, int, boolean)
+ /**
+ * The constructor.
+ *
+ * @param x the initial x position
+ * @param y the initial y position
+ * @param w the initial width
+ * @param h the initial height
+ * @param expandOnly true if this fig shall not shrink
*/
public FigSingleLineText(int x, int y, int w, int h, boolean expandOnly) {
super(x, y, w, h, expandOnly);
@@ -101,9 +100,15 @@
ArgoEventPump.addListener(ArgoEventTypes.ANY_NOTATION_EVENT, this);
}
- /*
- * @see org.tigris.gef.presentation.FigText#FigText(
- * int, int, int, int, boolean)
+ /**
+ * The constructor.
+ *
+ * @param x the initial x position
+ * @param y the initial y position
+ * @param w the initial width
+ * @param h the initial height
+ * @param expandOnly true if this fig shall not shrink
+ * @param property the property to listen to
*/
public FigSingleLineText(int x, int y, int w, int h, boolean expandOnly,
String property) {
@@ -114,14 +119,22 @@
* @see org.tigris.gef.presentation.FigText#FigText(
* int, int, int, int, boolean)
*/
+ /**
+ * The constructor.
+ *
+ * @param x the initial x position
+ * @param y the initial y position
+ * @param w the initial width
+ * @param h the initial height
+ * @param expandOnly true if this fig shall not shrink
+ * @param allProperties the properties to listen to
+ */
public FigSingleLineText(int x, int y, int w, int h, boolean expandOnly,
String[] allProperties) {
this(x, y, w, h, expandOnly);
this.properties = allProperties;
}
-
-
@Override
public Dimension getMinimumSize() {
Dimension d = new Dimension();
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.