@Override
  public void setHorizontalTextPosition(int textPosition) {
    super.setHorizontalTextPosition(textPosition);
    if (myEditorPane != null) {
      updateLayout();
    }
  }
@Override
  public void setHorizontalTextPosition(int textPosition)