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

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