if (t != LEFT && t != CENTER && t != RIGHT && t != LEADING && t != TRAILING) throw new IllegalArgumentException("Invalid alignment.");
  public void setHorizontalTextPosition(int t)  {    if (horizontalTextPosition == t)      return;    int old = horizontalTextPosition;    horizontalTextPosition = t;        firePropertyChange(HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, old, t);        revalidate();        repaint();      }