/** * Gets the bounding box of this <code>Polygon</code>. * The bounding box is the smallest {@link Rectangle} whose * sides are parallel to the x and y axes of the * coordinate space, and can completely contain the <code>Polygon</code>. * @return a <code>Rectangle</code> that defines the bounds of this * <code>Polygon</code>. * */ @Override public Rectangle getBounds() { return getBounds2D().getBounds(); }