* @return A new CompositeFigure consisting of the label.
*/
public Figure createFigure() {
CompositeFigure background = new CompositeFigure(super
.createBackgroundFigure());
Nameable container = getContainer();
if (container instanceof Settable) {
String name = container.getDisplayName();
String value = ((Settable) container).getExpression();
LabelFigure label = new LabelFigure(name + ": " + value,
_labelFont, 1.0, SwingConstants.SOUTH_WEST);
background.add(label);
return background;
} else {
String name = container.getName();
LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
SwingConstants.SOUTH_WEST);
background.add(label);
return background;
}