Example #1
0
 /** 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);
 }
Example #2
0
 /** @see org.argouml.uml.diagram.ui.FigNodeModelElement#updateNameText() */
 protected void updateNameText() {
   super.updateNameText();
   calcBounds();
   setBounds(getBounds());
 }