Class RectangleExtender


  • public class RectangleExtender
    extends Object
    Extends a rectangle using a horizontal and vertical extension. The rectangle is limited by the given clipping rectangle
    • Constructor Detail

      • RectangleExtender

        public RectangleExtender​(Rectangle clippingRect,
                                 int widthExtend,
                                 int heightExtend)
        Creates a RectangleExtender
        Parameters:
        clippingRect - The clipping Rectangle.
        widthExtend - The horizontal extension
        heightExtend - The vertical extension
    • Method Detail

      • extend

        public Rectangle extend​(Rectangle rectangle)
        Extends the given rectangle and clips the result to the clipping rectangle.
        Parameters:
        rectangle -
        Returns:
        extended rectangle