@Override
	@Pure
	protected Rectangle2d calcBounds() {
		final Rectangle2d bounds = super.calcBounds().toBoundingBox();
		if (bounds != null && isWidePolyline()) {
			final double w = getWidth();
			final double mx = bounds.getMinX();
			final double my = bounds.getMinY();
			final double xx = bounds.getMaxX();
			final double xy = bounds.getMaxY();
			final double dw = w / 2.;
			bounds.setFromCorners(mx - dw, my - dw, xx + dw, xy + dw);
		}
		return bounds;
	}
@ Override @ Pure protected Rectangle2d calcBounds ( ) { final Rectangle2d bounds = super . calcBounds ( ) . toBoundingBox ( ) ; if ( bounds != null && isWidePolyline ( ) ) { final double w = getWidth ( ) ; final double mx = bounds . getMinX ( ) ; final double my = bounds . getMinY ( ) ; final double xx = bounds . getMaxX ( ) ; final double xy = bounds . getMaxY ( ) ; final double dw = w / 2. ; bounds . setFromCorners ( mx - dw , my - dw , xx + dw , xy + dw ) ; } return bounds ; }
Compute the bounds of this element.
This function does not update the internal
attribute replied by {@link #getBoundingBox()}