Change the action listener for the `Delete Rect' button so it does not
decrement the x,y positions for the fixed rects if the rect being
deleted is one that was drawn by the user.
Class MovableButtonMouseListener extends JFC's MouseInputAdpater to
provide handlers for three mouse events: mouse pressed, mouse dragged,
and mouse released.
This is an extension of the Graphics2DTestPlusUserDrawing example that
illustrates how to put a glass pane on the top of the window to pre-screen
mouse events before they're sent through to the underlying components.
Class RectDrawingListener extends JFC's MouseInputAdpater to provide
handlers for three mouse events: mouse pressed, mouse dragged, and mouse
released.
Specialization of the RectShape class used to distinguish user-drawn
rectangles from the fixed-shape rectangles added when the `Delete Rect'
button is pressed.