afreechart/src/main/java/org/afree/chart/text/TextBlockAnchor.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 {
        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 null;
    }
private Object readResolve ( ) throws ObjectStreamException { 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 null ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .