public void setRadius ( float radius ) { if ( getOriginalLocation ( ) != null ) { Bbox oldBounds = ( Bbox ) getOriginalLocation ( ) ; Bbox newBounds = ( Bbox ) oldBounds . clone ( ) ; newBounds . setWidth ( 2 * radius ) ; newBounds . setHeight ( 2 * radius ) ; newBounds . setCenterPoint ( oldBounds . getCenterPoint ( ) ) ; setOriginalLocation ( newBounds ) ; } else { setOriginalLocation ( new Bbox ( 0 , 0 , 2 * radius , 2 * radius ) ) ; } }
Set circle radius in world coordinates .