DebugFrame.java

00001 package edu.stanford.hci.r3.tools.debug;
00002 
00003 import java.awt.BorderLayout;
00004 
00005 import javax.swing.JFrame;
00006 import javax.swing.WindowConstants;
00007 
00008 import edu.stanford.hci.r3.util.WindowUtils;
00009 
00022 public class DebugFrame extends JFrame {
00023 
00024         private DebugPCanvas canvas;
00025 
00026         public DebugFrame(String nameOfApp) {
00027                 super("Debugging " + nameOfApp);
00028                 setSize(1024, 768);
00029                 setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
00030 
00031                 setupContents();
00032 
00033                 
00034                 
00035                 setLocation(WindowUtils.getWindowOrigin(this, WindowUtils.DESKTOP_CENTER));
00036                 
00037                 setExtendedState(JFrame.MAXIMIZED_BOTH);
00038                 setVisible(true);
00039         }
00040 
00041         private void setupContents() {
00042                 setLayout(new BorderLayout());
00043                 
00044                 canvas = new DebugPCanvas();
00045                 add(canvas, BorderLayout.CENTER);
00046         }
00047         
00048         public DebugPCanvas getCanvas() {
00049                 return canvas;
00050         }
00051 }

Generated on Sat Apr 14 18:21:33 2007 for R3 Paper Toolkit by  doxygen 1.4.7