JHotDraw 7.0.9

org.jhotdraw.draw
Interface DecoratedFigure

All Known Implementing Classes:
AbstractAttributedDecoratedFigure, ImageFigure, LabelFigure, NodeFigure, TextAreaFigure, TextFigure

public interface DecoratedFigure

This interface is implemented by Figures that can be Decorated with another Figure.

Version:
1.0 January 5, 2007 Created.
Author:
Werner Randelshofer

Method Summary
 Figure getDecorator()
          Gets the decorator for this figure.
 void setDecorator(Figure newValue)
          Sets a decorator Figure, for example a visual adornment to this Figure.
 

Method Detail

setDecorator

void setDecorator(Figure newValue)
Sets a decorator Figure, for example a visual adornment to this Figure. Set this to null, if no decorator is desired. The decorator uses the same logical bounds as this Figure plus AttributeKeys.DECORATOR_INSETS. The decorator does not handle events. The decorator is drawn when the figure is drawn.


getDecorator

Figure getDecorator()
Gets the decorator for this figure.


Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.