Package org.esa.snap.core.util
Class RectangleExtender
java.lang.Object
org.esa.snap.core.util.RectangleExtender
Extends a rectangle using a horizontal and vertical extension.
The rectangle is limited by the given clipping rectangle
-
Constructor Summary
ConstructorsConstructorDescriptionRectangleExtender
(Rectangle clippingRect, int widthExtend, int heightExtend) Creates a RectangleExtender -
Method Summary
-
Constructor Details
-
RectangleExtender
Creates a RectangleExtender- Parameters:
clippingRect
- The clipping Rectangle.widthExtend
- The horizontal extensionheightExtend
- The vertical extension
-
-
Method Details
-
extend
Extends the given rectangle and clips the result to the clipping rectangle.- Parameters:
rectangle
-- Returns:
- extended rectangle
-