2,2c2,2 < * @(#)TextFigure.java 5.2 --- > * @(#)TextFigure.java 3a4,9 > * Project: JHotdraw - a GUI framework for technical drawings > * http://www.jhotdraw.org > * http://jhotdraw.sourceforge.net > * Copyright: © by the original author(s) and all contributors > * License: Lesser GNU Public License (LGPL) > * http://www.opensource.org/licenses/lgpl-license.html 18a25,26 > * > * @version <$CURRENT_VERSION$> 61,61c69,69 < if (fLocator != null) --- > if (fLocator != null) { 130,130c139,139 < if (name.equals("FontSize")) --- > if (name.equals("FontSize")) { 131a141,141 > } 132,132c142,142 < if (name.equals("FontStyle")) --- > if (name.equals("FontStyle")) { 133a144,144 > } 134,134c145,145 < if (name.equals("FontName")) --- > if (name.equals("FontName")) { 135a147,147 > } 152,152c164,164 < if (s.intValue() == Font.PLAIN) --- > if (s.intValue() == Font.PLAIN) { 153a166,166 > } 154,154c167,167 < else --- > else { 155a169,169 > } 162,162c176,176 < else --- > else { 164a179,179 > } 205,205c220,220 < if (!fSizeIsDirty) --- > if (!fSizeIsDirty) { 206a222,222 > } 224,224c240,240 < if (length != 0) --- > if (length != 0) { 225a242,242 > } 261,261c278,278 < if (fObservedFigure != null) --- > if (fObservedFigure != null) { 262a280,280 > } 271,271c289,289 < if (fObservedFigure != null) --- > if (fObservedFigure != null) { 272a291,291 > } 277,277c296,296 < if (fObservedFigure != null) --- > if (fObservedFigure != null) { 278a298,298 > } 291,291c311,311 < if (listener() != null) --- > if (listener() != null) { 293a314,314 > } 305a327,327 > 307a71,71 > } 308,308d70 < 319,320d339 < if (fObservedFigure != null) < fObservedFigure.removeFigureChangeListener(this); 324,324c344,344 < * Disconnects the text figure. --- > * Disconnects a text holder from a connect figure. 325a340,340 > disconnect(fObservedFigure); 325a346,350 > public void disconnect(Figure disconnectFigure) { > if (disconnectFigure != null) { > disconnectFigure.removeFigureChangeListener(this); > disconnectFigure = null; > } 326,328d339 < public void disconnect() { < fObservedFigure.removeFigureChangeListener(this); < fObservedFigure = null;