afreechart/src/main/java/org/afree/chart/axis/AxisSpace.java
/**
     * Ensures there is a minimum amount of space at the edge corresponding to
     * the specified axis location.
     * 
     * @param space
     *            the space.
     * @param edge
     *            the location.
     */
Ensures there is a minimum amount of space at the edge corresponding to
the specified axis location.

@param space
the space.
@param edge
the location.
Ensures there is a minimum amount of space at the edge corresponding to the specified axis location . @param space the space . @param edge the location .
public void ensureAtLeast(double space, RectangleEdge edge) {
        if (edge == RectangleEdge.TOP) {
            if (this.top < space) {
                this.top = space;
            }
        } else if (edge == RectangleEdge.BOTTOM) {
            if (this.bottom < space) {
                this.bottom = space;
            }
        } else if (edge == RectangleEdge.LEFT) {
            if (this.left < space) {
                this.left = space;
            }
        } else if (edge == RectangleEdge.RIGHT) {
            if (this.right < space) {
                this.right = space;
            }
        } else {
            throw new IllegalStateException(
                    "AxisSpace.ensureAtLeast(): unrecognised AxisLocation.");
        }
    }
public void ensureAtLeast ( double space , RectangleEdge edge ) { if ( edge == RectangleEdge . TOP ) { if ( this . top < space ) { this . top = space ; } } else if ( edge == RectangleEdge . BOTTOM ) { if ( this . bottom < space ) { this . bottom = space ; } } else if ( edge == RectangleEdge . LEFT ) { if ( this . left < space ) { this . left = space ; } } else if ( edge == RectangleEdge . RIGHT ) { if ( this . right < space ) { this . right = space ; } } else { throw new IllegalStateException ( "AxisSpace.ensureAtLeast(): unrecognised AxisLocation." ) ; } }
Ensures there is a minimum amount of space at the edge corresponding to
 the specified axis location.
Ensures there is a minimum amount of space at the edge corresponding to the specified axis location .