label.translateTo(x, y + 5);
// Rotate the label.
AffineTransform rotate = AffineTransform.getRotateInstance(
Math.PI / 2.0, x, y + 5);
label.transform(rotate);
} else if (direction == SwingConstants.EAST) {
// The 1.0 argument is the padding.
label = new LabelFigure(string, font, 1.0,
SwingConstants.SOUTH_WEST);