/** Updates the name if modelchanged receives an "isAbstract" event. */ protected void updateAbstract() { Rectangle rect = getBounds(); if (getOwner() == null) { return; } Object cls = /*(MClass)*/ getOwner(); if (Model.getFacade().isAbstract(cls)) { getNameFig().setFont(getItalicLabelFont()); } else { getNameFig().setFont(getLabelFont()); } super.updateNameText(); setBounds(rect.x, rect.y, rect.width, rect.height); }
/** @see org.argouml.uml.diagram.ui.FigNodeModelElement#updateNameText() */ protected void updateNameText() { super.updateNameText(); calcBounds(); setBounds(getBounds()); }