171172173174175176177178179180181
.getParent(); if (parent != null) { FigureDecorator d = _prototypeDecorator .newInstance(figure); parent.decorate(figure, d); _decorators.put(figure, d); } } } }
114115116117118119120121122123124
} else { FigureContainer parent = (FigureContainer) figure.getParent(); if (parent != null) { FigureDecorator d = _prototypeDecorator.newInstance(figure); parent.decorate(figure, d); _decorators.put(figure, d); } } }