// FindBugs suggests making this class static so as to decrease
// the size of instances and avoid dangling references.
public Figure createFigure() {
LabelFigure label = new LabelFigure("Hello!");
label.translate(200, 200);
return label;
}
public String toString() {
return "Label figure";