Author: mvw Date: 2008-11-22 03:54:51-0800 New Revision: 16135 Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java
Log: Remove unnecessary code. This fixes issue 5497: "Class that shows stereotype grows on notation event". Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java?view=diff&rev=16135&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java&r1=16134&r2=16135 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java (original) +++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigClassifierBoxWithAttributes.java 2008-11-22 03:54:51-0800 @@ -28,7 +28,6 @@ import java.awt.Dimension; import java.awt.Rectangle; import java.util.HashSet; -import java.util.Iterator; import java.util.Set; import javax.swing.Action; @@ -43,7 +42,6 @@ import org.argouml.uml.diagram.AttributesCompartmentContainer; import org.argouml.uml.diagram.ui.FigAttributesCompartment; import org.argouml.uml.ui.foundation.core.ActionAddAttribute; -import org.tigris.gef.presentation.Fig; /** * A Fig for a ClassifierBox that adds an attributes compartment. @@ -195,38 +193,6 @@ } } - @Override - protected void updateStereotypeText() { - - Rectangle rect = getBounds(); - - int stereotypeHeight = 0; - if (getStereotypeFig().isVisible()) { - stereotypeHeight = getStereotypeFig().getHeight(); - } - int heightWithoutStereo = getHeight() - stereotypeHeight; - - getStereotypeFig().populate(); - - stereotypeHeight = 0; - if (getStereotypeFig().isVisible()) { - stereotypeHeight = getStereotypeFig().getHeight(); - } - - int minWidth = this.getMinimumSize().width; - if (minWidth > rect.width) { - rect.width = minWidth; - } - - setBounds( - rect.x, - rect.y, - rect.width, - heightWithoutStereo + stereotypeHeight); - calcBounds(); - } - - /** * Updates the attributes in the fig. Called from modelchanged if there is * a modelevent effecting the attributes and from renderingChanged in all --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
