if (t != TOP && t != CENTER && t != BOTTOM) throw new IllegalArgumentException("Invalid alignment.");
  public void setVerticalTextPosition(int t)  {    if (verticalTextPosition == t)      return;        int old = verticalTextPosition;    verticalTextPosition = t;        firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPERTY, old, t);        revalidate();        repaint();      }