afreechart/src/main/java/org/afree/ui/TextAnchor.java
/**
     * Ensures that serialization returns the unique instances.
     * 
     * @return The object.
     * 
     * @throws ObjectStreamException
     *             if there is a problem.
     */
Ensures that serialization returns the unique instances.

@return The object.

@throws ObjectStreamException
if there is a problem.
Ensures that serialization returns the unique instances . @return The object . @throws ObjectStreamException if there is a problem .
private Object readResolve() throws ObjectStreamException {
        TextAnchor result = null;
        if (this.equals(TextAnchor.TOP_LEFT)) {
            result = TextAnchor.TOP_LEFT;
        } else if (this.equals(TextAnchor.TOP_CENTER)) {
            result = TextAnchor.TOP_CENTER;
        } else if (this.equals(TextAnchor.TOP_RIGHT)) {
            result = TextAnchor.TOP_RIGHT;
        } else if (this.equals(TextAnchor.BOTTOM_LEFT)) {
            result = TextAnchor.BOTTOM_LEFT;
        } else if (this.equals(TextAnchor.BOTTOM_CENTER)) {
            result = TextAnchor.BOTTOM_CENTER;
        } else if (this.equals(TextAnchor.BOTTOM_RIGHT)) {
            result = TextAnchor.BOTTOM_RIGHT;
        } else if (this.equals(TextAnchor.BASELINE_LEFT)) {
            result = TextAnchor.BASELINE_LEFT;
        } else if (this.equals(TextAnchor.BASELINE_CENTER)) {
            result = TextAnchor.BASELINE_CENTER;
        } else if (this.equals(TextAnchor.BASELINE_RIGHT)) {
            result = TextAnchor.BASELINE_RIGHT;
        } else if (this.equals(TextAnchor.CENTER_LEFT)) {
            result = TextAnchor.CENTER_LEFT;
        } else if (this.equals(TextAnchor.CENTER)) {
            result = TextAnchor.CENTER;
        } else if (this.equals(TextAnchor.CENTER_RIGHT)) {
            result = TextAnchor.CENTER_RIGHT;
        } else if (this.equals(TextAnchor.HALF_ASCENT_LEFT)) {
            result = TextAnchor.HALF_ASCENT_LEFT;
        } else if (this.equals(TextAnchor.HALF_ASCENT_CENTER)) {
            result = TextAnchor.HALF_ASCENT_CENTER;
        } else if (this.equals(TextAnchor.HALF_ASCENT_RIGHT)) {
            result = TextAnchor.HALF_ASCENT_RIGHT;
        }
        return result;
    }
private Object readResolve ( ) throws ObjectStreamException { TextAnchor result = null ; if ( this . equals ( TextAnchor . TOP_LEFT ) ) { result = TextAnchor . TOP_LEFT ; } else if ( this . equals ( TextAnchor . TOP_CENTER ) ) { result = TextAnchor . TOP_CENTER ; } else if ( this . equals ( TextAnchor . TOP_RIGHT ) ) { result = TextAnchor . TOP_RIGHT ; } else if ( this . equals ( TextAnchor . BOTTOM_LEFT ) ) { result = TextAnchor . BOTTOM_LEFT ; } else if ( this . equals ( TextAnchor . BOTTOM_CENTER ) ) { result = TextAnchor . BOTTOM_CENTER ; } else if ( this . equals ( TextAnchor . BOTTOM_RIGHT ) ) { result = TextAnchor . BOTTOM_RIGHT ; } else if ( this . equals ( TextAnchor . BASELINE_LEFT ) ) { result = TextAnchor . BASELINE_LEFT ; } else if ( this . equals ( TextAnchor . BASELINE_CENTER ) ) { result = TextAnchor . BASELINE_CENTER ; } else if ( this . equals ( TextAnchor . BASELINE_RIGHT ) ) { result = TextAnchor . BASELINE_RIGHT ; } else if ( this . equals ( TextAnchor . CENTER_LEFT ) ) { result = TextAnchor . CENTER_LEFT ; } else if ( this . equals ( TextAnchor . CENTER ) ) { result = TextAnchor . CENTER ; } else if ( this . equals ( TextAnchor . CENTER_RIGHT ) ) { result = TextAnchor . CENTER_RIGHT ; } else if ( this . equals ( TextAnchor . HALF_ASCENT_LEFT ) ) { result = TextAnchor . HALF_ASCENT_LEFT ; } else if ( this . equals ( TextAnchor . HALF_ASCENT_CENTER ) ) { result = TextAnchor . HALF_ASCENT_CENTER ; } else if ( this . equals ( TextAnchor . HALF_ASCENT_RIGHT ) ) { result = TextAnchor . HALF_ASCENT_RIGHT ; } return result ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .