Class RubberbandRectangleHandles

    • Field Detail

      • handleSizePixels

        public static double handleSizePixels
    • Constructor Detail

      • RubberbandRectangleHandles

        public RubberbandRectangleHandles​(Component c,
                                          boolean listen)
    • Method Detail

      • setRectangle

        public void setRectangle​(Rectangle current)
      • move

        public void move​(int deltax,
                         int deltay)
        Erase the last rectangle and shift the rectangle and redraw deltax, deltay: position from original position
      • drawHandledRect

        public static void drawHandledRect​(Graphics2D graphics,
                                           Rectangle2D rect,
                                           double handleSize)