| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDTFrame
gpdraw.SketchPad
public class SketchPad
A SketchPad is a top-level window for use with a DrawingTool object The center of the graphics window is at location 0,0. Positive X is to the right; positive Y is up. Headings (angles) are measured in degrees counterclockwise from the positive X axis.
| Field Summary | |
|---|---|
| protected  javax.swing.JMenuItem | fastSpeedMI | 
| protected  javax.swing.JMenuItem | mediumSpeedMI | 
| protected  javax.swing.JMenuItem | noDelaySpeedMI | 
| protected  SketchPadPanel | pad | 
| protected  javax.swing.JMenuItem | quitFileMI | 
| protected  javax.swing.JMenuItem | slowSpeedMI | 
| Constructor Summary | |
|---|---|
| SketchPad(int width,
          int height)Constructor. | |
| SketchPad(int width,
          int height,
          long delay)Constructor. | |
| SketchPad(SketchPadPanel sPadPanel)Constructor. | |
| Method Summary | |
|---|---|
| protected  void | menuItemSelected(javax.swing.JMenuItem mi)The application must implement this method in order to handle menu events. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected SketchPadPanel pad
protected javax.swing.JMenuItem quitFileMI
protected javax.swing.JMenuItem slowSpeedMI
protected javax.swing.JMenuItem mediumSpeedMI
protected javax.swing.JMenuItem fastSpeedMI
protected javax.swing.JMenuItem noDelaySpeedMI
| Constructor Detail | 
|---|
public SketchPad(SketchPadPanel sPadPanel)
SketchPad window that is 250 pixels wide
                by 250 pixels high with a drawing delay of 125ms. Adds the
                SketchPadPanel sPadPanel to the SketchPad
sPadPanel - SketchPadPanel to be added to the SketchPad
public SketchPad(int width,
                 int height)
SketchPad window that is widthheight pixels high with a drawing
                delay of 125ms.
width - width of this SketchPadheight - height of this SketchPad
public SketchPad(int width,
                 int height,
                 long delay)
SketchPad window that is widthheight pixels high with a drawing
                delay of delay ms.
width - width of this SketchPadheight - height of this SketchPaddelay - drawing delay (ms)| Method Detail | 
|---|
protected void menuItemSelected(javax.swing.JMenuItem mi)
mi - The MenuItem in which the selection occurred.| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||