afreechart/src/main/java/org/afree/chart/block/RectangleConstraint.java
/**
     * Returns a constraint that matches this one on the height attributes, but
     * has no width constraint.
     * 
     * @return A new constraint.
     */
Returns a constraint that matches this one on the height attributes, but
has no width constraint.

@return A new constraint.
Returns a constraint that matches this one on the height attributes but has no width constraint . @return A new constraint .
public RectangleConstraint toUnconstrainedWidth() {
        if (this.widthConstraintType == LengthConstraintType.NONE) {
            return this;
        } else {
            return new RectangleConstraint(this.width, this.widthRange,
                    LengthConstraintType.NONE, this.height, this.heightRange,
                    this.heightConstraintType);
        }
    }
public RectangleConstraint toUnconstrainedWidth ( ) { if ( this . widthConstraintType == LengthConstraintType . NONE ) { return this ; } else { return new RectangleConstraint ( this . width , this . widthRange , LengthConstraintType . NONE , this . height , this . heightRange , this . heightConstraintType ) ; } }
Returns a constraint that matches this one on the height attributes, but
 has no width constraint.
Returns a constraint that matches this one on the height attributes but has no width constraint .