if (this.equals(TextBlockAnchor.TOP_CENTER)) { return TextBlockAnchor.TOP_CENTER; else if (this.equals(TextBlockAnchor.TOP_LEFT)) { return TextBlockAnchor.TOP_LEFT; else if (this.equals(TextBlockAnchor.TOP_RIGHT)) { return TextBlockAnchor.TOP_RIGHT; else if (this.equals(TextBlockAnchor.CENTER)) { return TextBlockAnchor.CENTER; else if (this.equals(TextBlockAnchor.CENTER_LEFT)) { return TextBlockAnchor.CENTER_LEFT; else if (this.equals(TextBlockAnchor.CENTER_RIGHT)) { return TextBlockAnchor.CENTER_RIGHT; else if (this.equals(TextBlockAnchor.BOTTOM_CENTER)) { return TextBlockAnchor.BOTTOM_CENTER; else if (this.equals(TextBlockAnchor.BOTTOM_LEFT)) { return TextBlockAnchor.BOTTOM_LEFT; else if (this.equals(TextBlockAnchor.BOTTOM_RIGHT)) { return TextBlockAnchor.BOTTOM_RIGHT;
/** * Returns a hash code for this object. * * @return A hash code. */ public int hashCode() { int result = 41; result = 37 * result + this.category.hashCode(); result = 37 * result + this.label.hashCode(); result = 37 * result + this.labelAnchor.hashCode(); return result; } }
if (this.equals(TextBlockAnchor.TOP_CENTER)) { return TextBlockAnchor.TOP_CENTER; else if (this.equals(TextBlockAnchor.TOP_LEFT)) { return TextBlockAnchor.TOP_LEFT; else if (this.equals(TextBlockAnchor.TOP_RIGHT)) { return TextBlockAnchor.TOP_RIGHT; else if (this.equals(TextBlockAnchor.CENTER)) { return TextBlockAnchor.CENTER; else if (this.equals(TextBlockAnchor.CENTER_LEFT)) { return TextBlockAnchor.CENTER_LEFT; else if (this.equals(TextBlockAnchor.CENTER_RIGHT)) { return TextBlockAnchor.CENTER_RIGHT; else if (this.equals(TextBlockAnchor.BOTTOM_CENTER)) { return TextBlockAnchor.BOTTOM_CENTER; else if (this.equals(TextBlockAnchor.BOTTOM_LEFT)) { return TextBlockAnchor.BOTTOM_LEFT; else if (this.equals(TextBlockAnchor.BOTTOM_RIGHT)) { return TextBlockAnchor.BOTTOM_RIGHT;
/** * Returns a hash code for this object. * * @return A hash code. */ public int hashCode() { int result = 19; result = 37 * result + this.categoryAnchor.hashCode(); result = 37 * result + this.labelAnchor.hashCode(); result = 37 * result + this.rotationAnchor.hashCode(); return result; }
if (this.equals(TextBlockAnchor.TOP_CENTER)) { return TextBlockAnchor.TOP_CENTER; else if (this.equals(TextBlockAnchor.TOP_LEFT)) { return TextBlockAnchor.TOP_LEFT; else if (this.equals(TextBlockAnchor.TOP_RIGHT)) { return TextBlockAnchor.TOP_RIGHT; else if (this.equals(TextBlockAnchor.CENTER)) { return TextBlockAnchor.CENTER; else if (this.equals(TextBlockAnchor.CENTER_LEFT)) { return TextBlockAnchor.CENTER_LEFT; else if (this.equals(TextBlockAnchor.CENTER_RIGHT)) { return TextBlockAnchor.CENTER_RIGHT; else if (this.equals(TextBlockAnchor.BOTTOM_CENTER)) { return TextBlockAnchor.BOTTOM_CENTER; else if (this.equals(TextBlockAnchor.BOTTOM_LEFT)) { return TextBlockAnchor.BOTTOM_LEFT; else if (this.equals(TextBlockAnchor.BOTTOM_RIGHT)) { return TextBlockAnchor.BOTTOM_RIGHT;
return false; if (!this.labelAnchor.equals(that.labelAnchor)) { return false;
return false; if (!this.contentAlignmentPoint.equals(that.contentAlignmentPoint)) { return false;