diff options
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java index 0c8e916eed7..bd56457ca7e 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/ContainmentFigure.java @@ -1,34 +1,34 @@ -/*****************************************************************************
- * Copyright (c) 2009 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Fadoi LAKHAL Fadoi.Lakhal@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.clazz.custom.figure;
-
-import org.eclipse.draw2d.Graphics;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.RoundedCompartmentFigure;
-
-/** Use to create a containment circle figure */
-public class ContainmentFigure extends RoundedCompartmentFigure {
-
- @Override
- public void paint(Graphics graphics) {
- super.paint(graphics);
- graphics.pushState();
- // Draw the cross.
- int x = (int) (bounds.width / 2);
- int y = (int) (bounds.height / (2));
- graphics.drawLine(bounds.getCenter().translate(x, 0), bounds.getCenter().translate(-x, 0));
- graphics.drawLine(bounds.getCenter().translate(0, -y), bounds.getCenter().translate(0, y));
- graphics.popState();
- }
-
-}
+/***************************************************************************** + * Copyright (c) 2009 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Fadoi LAKHAL Fadoi.Lakhal@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.diagram.clazz.custom.figure; + +import org.eclipse.draw2d.Graphics; +import org.eclipse.papyrus.uml.diagram.common.figure.node.RoundedCompartmentFigure; + +/** Use to create a containment circle figure */ +public class ContainmentFigure extends RoundedCompartmentFigure { + + @Override + public void paint(Graphics graphics) { + super.paint(graphics); + graphics.pushState(); + // Draw the cross. + int x = (int) (bounds.width / 2); + int y = (int) (bounds.height / (2)); + graphics.drawLine(bounds.getCenter().translate(x, 0), bounds.getCenter().translate(-x, 0)); + graphics.drawLine(bounds.getCenter().translate(0, -y), bounds.getCenter().translate(0, y)); + graphics.popState(); + } + +} |