Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
The origin of the component is assumed to be (0, 0).
the bounds that result from applying the insets to the component bounds. This operation is conservative
with respect to the insets. The insets implied by the result will always be at least as large as the nominal
insets implied by this insetter, unless applying the insets would result in a negative width or height.
apply2D
Rectangle2D apply2D(double width,
double height)
Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
@NotNull
public Rectangle2D apply2D(double width,
double height)
Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
The origin of the component is assumed to be (0, 0).
the bounds that result from applying the insets to the component bounds. This operation is conservative
with respect to the insets. The insets implied by the result will always be at least as large as the nominal
insets implied by this insetter, unless applying the insets would result in a negative width or height.
applyToBounds2D
Rectangle2D applyToBounds2D(Rectangle2D bounds)
Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
@NotNull
public Rectangle2D applyToBounds2D(@NotNull Rectangle2D bounds)
Return the insets as AWT insets. Only insets with fixed values can be represented as AWT insets. If the inset values
are not integers, the next larger integer value is returned.