afreechart/src/main/java/org/afree/chart/plot/dial/DialPlot.java
/**
     * A utility method that computes a RectShape using relative radius values.
     *
     * @param rect  the reference RectShape (<code>null</code> not permitted).
     * @param radiusW  the width radius (must be > 0.0)
     * @param radiusH  the height radius.
     *
     * @return A new RectShape.
     */
A utility method that computes a RectShape using relative radius values.
@param rect  the reference RectShape (null not permitted).
@param radiusW  the width radius (must be > 0.0)
@param radiusH  the height radius.

@return A new RectShape.
A utility method that computes a RectShape using relative radius values . @param rect the reference RectShape ( null not permitted ) . @param radiusW the width radius ( must be > 0 . 0 ) @param radiusH the height radius . @return A new RectShape .
public static RectShape RectShapeByRadius(RectShape rect,
            double radiusW, double radiusH) {
        if (rect == null) {
            throw new IllegalArgumentException("Null 'rect' argument.");
        }
        double x = rect.getCenterX();
        double y = rect.getCenterY();
        double w = rect.getWidth() * radiusW;
        double h = rect.getHeight() * radiusH;
        return new RectShape(x - w / 2.0, y - h / 2.0, w, h);
    }
public static RectShape RectShapeByRadius ( RectShape rect , double radiusW , double radiusH ) { if ( rect == null ) { throw new IllegalArgumentException ( "Null 'rect' argument." ) ; } double x = rect . getCenterX ( ) ; double y = rect . getCenterY ( ) ; double w = rect . getWidth ( ) * radiusW ; double h = rect . getHeight ( ) * radiusH ; return new RectShape ( x - w / 2.0 , y - h / 2.0 , w , h ) ; }
A utility method that computes a RectShape using relative radius values.
A utility method that computes a RectShape using relative radius values .