Author: maurelio1234
Date: 2007-05-30 08:01:36-0700
New Revision: 12717
Removed:
branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/FigBean.java
Modified:
branches/gsoc2007/maurelio1234/examples/javabeans/ (props changed)
branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java
Log:
trying to implement figures support. it seems my code is just not being called :(
Removed: branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/FigBean.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/FigBean.java?view=auto&rev=12716
Modified: branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java?view=diff&rev=12717&p1=branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java&p2=branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java&r1=12716&r2=12717
==============================================================================
--- branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java (original)
+++ branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/JavaBeansFigNodeStrategy.java 2007-05-30 08:01:36-0700
@@ -1,19 +1,21 @@
package org.argouml.uml.profile.javabeans;
-import java.util.Map;
+import java.util.logging.Logger;
import org.argouml.model.Model;
import org.argouml.uml.profile.FigNodeStrategy;
-import org.tigris.gef.presentation.FigNode;
+import org.tigris.gef.presentation.Fig;
+import org.tigris.gef.presentation.FigRect;
public class JavaBeansFigNodeStrategy implements FigNodeStrategy {
- public FigNode getFigNodelForElement(Object element, int x, int y, Map styleAttributes) {
- FigNode ret = null;
- if (Model.getExtensionMechanismsHelper().hasStereoType(element, "Bean")) {
- ret = new FigBean(element, x, y);
- }
- return ret;
+ public Fig[] getExtraFiguresForNode(Object element) {
+ Fig ret = null;
+// if (Model.getExtensionMechanismsHelper().hasStereoType(element, "Bean")) {
+ ret = new FigRect(10, 10, 16, 16);
+// }
+
+ return new Fig[] { ret };
}
}
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.