svn commit: r17259 - trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java
Bob Tarling <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2009-08-10 16:02:54-0700
New Revision: 17259
Modified:
trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java
Log:
Remove implementation copied accidentally
Modified: trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java?view=diff&pathrev=17259&r1=17258&r2=17259
==============================================================================
--- trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java (original)
+++ trunk/src/argouml-core-diagrams-uml2/src/org/argouml/diagram/uml2/FigInclude2.java 2009-08-10 16:02:54-0700
@@ -24,63 +24,16 @@
package org.argouml.diagram.uml2;
-import java.awt.Graphics;
-import java.awt.Rectangle;
-
import org.argouml.uml.diagram.DiagramSettings;
-import org.argouml.uml.diagram.ui.FigEdgeModelElement;
-import org.argouml.uml.diagram.ui.FigSingleLineText;
-import org.argouml.uml.diagram.ui.PathItemPlacement;
-import org.tigris.gef.presentation.ArrowHeadGreater;
-import org.tigris.gef.presentation.Fig;
-
+import org.argouml.uml.diagram.use_case.ui.FigInclude;
/**
* A fig for use with include relationships on use case diagrams.<p>
*
* Realised as a dotted line with an open arrow head and the label
* <<include>> alongside a la stereotype.<p>
- *
- * @author Jeremy Bennett
*/
-public class FigInclude2 extends FigEdgeModelElement {
-
- /**
- * Serial version - generated by Eclipse for rev. 1.14
- */
- private static final long serialVersionUID = 6199364390483239154L;
-
- /*
- * Text fig to hold the <<include>> label
- */
- private FigSingleLineText label;
-
- private ArrowHeadGreater endArrow = new ArrowHeadGreater();
-
- private void initialize() {
- // The <<include>> label.
- // It's not a true stereotype, so don't use the stereotype support
- label.setTextColor(TEXT_COLOR);
- label.setTextFilled(false);
- label.setFilled(false);
- label.setLineWidth(0);
- label.setEditable(false);
- label.setText("<<include>>");
-
- addPathItem(label, new PathItemPlacement(this, label, 50, 10));
-
- // Make the line dashed
-
- setDashed(true);
-
- // Add an arrow with an open arrow head
-
- setDestArrowHead(endArrow);
-
- // Make the edge go between nearest points
-
- setBetweenNearestPoints(true);
- }
+public class FigInclude2 extends FigInclude {
/**
* Construct a fig owned by the given UML element with the provided render
@@ -90,45 +43,6 @@
*/
public FigInclude2(Object edge, DiagramSettings settings) {
super(edge, settings);
- label = new FigSingleLineText(edge, new Rectangle(X0, Y0 + 20, 90, 20),
- settings, false);
- initialize();
- }
-
- /**
- * <p>Set a new fig to represent this edge.</p>
- *
- * <p>We invoke the superclass accessor. Then change aspects of the
- * new fig that are not as we want. In this case to use dashed lines.</p>
- *
- * @param f The fig to use.
- */
- @Override
- public void setFig(Fig f) {
- super.setFig(f);
- setDashed(true);
- }
-
- /**
- * <p>Define whether the given fig can be edited (it can't).</p>
- *
- * @param f The fig about which the enquiry is being made. Ignored in this
- * implementation.
- *
- * @return <code>false</code> under all circumstances.
- */
- @Override
- protected boolean canEdit(Fig f) {
- return false;
- }
-
- /*
- * @see org.tigris.gef.presentation.Fig#paint(java.awt.Graphics)
- */
- @Override
- public void paint(Graphics g) {
- endArrow.setLineColor(getLineColor());
- super.paint(g);
}
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2382246
To unsubscribe from this discussion, e-mail: [[email protected]].