import java.beans.*; import javax.swing.*; import java.awt.*; import java.util.*; /** Visualization of a {@link Room} for this lab */ public class RoomViz extends JPanel { // Useful constants private static final double h = 0.5000, q = h/2, e = q/2, s = e/2, t = s/2; /** This class has-a {@link java.util.List} of {@link Scribbler}s. * The constructor forms the list, and paintComponent iterates over * the list to paint the visualization for this {@link Room} */ public RoomViz(Room r) { } /** Accessor for the {@link Room} associated with this RoomViz */ public Room getRoom() { return null; } // FIX Me /** We override paintComopnent so we can draw as we wish to represent * our {@link Room}. First, draw the Room itself as you wish. I indented * the Room 1/4 all around, so it was 1/2 by 1/2. The {@link Room}'s * color could be based on the {@link Room}'s current {@link Set} * Then, itereate over * all {@link Scribbler}s for this instance, and for each, call its * draw method, passing it the supplied {@link Graphics} */ public void paintComponent(Graphics g) { super.paintComponent(g); // FILL ME IN } }