if (alignment != CENTER && alignment != LEFT && alignment != RIGHT)
throw new IllegalArgumentException("invalid alignment: " + alignment);
this.alignment = alignment;
if (peer != null)
{
LabelPeer lp = (LabelPeer) peer;
lp.setAlignment(alignment);
}
}