Author: bobtarling Date: 2011-04-26 14:59:23-0700 New Revision: 19286 Added: trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigNameCompartment.java
Log: A name compartment is made up of a stereotype compartment followed by the notation for the model element name Added: trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigNameCompartment.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigNameCompartment.java?view=markup&pathrev=19286 ============================================================================== --- (empty file) +++ trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigNameCompartment.java 2011-04-26 14:59:23-0700 @@ -0,0 +1,23 @@ +package org.argouml.activity2.diagram; + +import java.awt.Rectangle; + +import org.argouml.model.Model; +import org.argouml.notation2.NotationType; +import org.argouml.uml.diagram.DiagramSettings; +import org.tigris.gef.presentation.Fig; + +public class FigNameCompartment extends FigComposite { + + public FigNameCompartment(Object owner, Rectangle bounds, + DiagramSettings settings) { + super(owner, settings); + addFig(new FigCompartment(owner, bounds, settings, Model.getMetaTypes().getStereotype())); + Fig nameDisplay = new FigNotation( + owner, + new Rectangle(0, 0, 0, 0), + settings, + NotationType.NAME); + addFig(nameDisplay); + } +} ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2724433 To unsubscribe from this discussion, e-mail: [[email protected]].
