@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof TextTitle)) {
    return false;
  }
  TextTitle that=(TextTitle)obj;
  if (!ObjectUtilities.equal(this.text,that.text)) {
    return false;
  }
  if (!ObjectUtilities.equal(this.font,that.font)) {
    return false;
  }
  if (!PaintUtilities.equal(this.paint,that.paint)) {
    return false;
  }
  if (this.textAlignment != that.textAlignment) {
    return false;
  }
  if (!PaintUtilities.equal(this.backgroundPaint,that.backgroundPaint)) {
    return false;
  }
  if (this.maximumLinesToDisplay != that.maximumLinesToDisplay) {
    return false;
  }
  if (this.expandToFitSpace != that.expandToFitSpace) {
    return false;
  }
  if (!ObjectUtilities.equal(this.toolTipText,that.toolTipText)) {
    return false;
  }
  if (!ObjectUtilities.equal(this.urlText,that.urlText)) {
    return false;
  }
  return super.equals(obj);
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) { return true ; } if ( ! ( obj instanceof TextTitle ) ) { return false ; } TextTitle that = ( TextTitle ) obj ; if ( ! ObjectUtilities . equal ( this . text , that . text ) ) { return false ; } if ( ! ObjectUtilities . equal ( this . font , that . font ) ) { return false ; } if ( ! PaintUtilities . equal ( this . paint , that . paint ) ) { return false ; } if ( this . textAlignment != that . textAlignment ) { return false ; } if ( ! PaintUtilities . equal ( this . backgroundPaint , that . backgroundPaint ) ) { return false ; } if ( this . maximumLinesToDisplay != that . maximumLinesToDisplay ) { return false ; } if ( this . expandToFitSpace != that . expandToFitSpace ) { return false ; } if ( ! ObjectUtilities . equal ( this . toolTipText , that . toolTipText ) ) { return false ; } if ( ! ObjectUtilities . equal ( this . urlText , that . urlText ) ) { return false ; } return super . equals ( obj ) ; }
tests this title for equality with another object .
