Write a class that models a list of possibly overlapping rectangular twodimensional window regions, like the windows
Question:
Write a class that models a list of possibly overlapping rectangular twodimensional window regions, like the windows for the programs open on your computer. The order of the rectangles in the list implies the order in which they would display on the screen (sometimes called the “-order”), from 0 on the bottom to size() –1 on the top. Each rectangle stores its (x, y) position, width, and height. Your rectangle list class should have a method that takes a Point as a parameter, treats it as though the user clicked that Point on the screen, and moves the topmost rectangle touching that Point to the front of the list.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: