|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet javax.swing.JApplet containers.Lab3Applet
public class Lab3Applet
An applet with a three static DrawingCanvases so that other classes can draw without needing parameters. Made for Lab 4 of Fall 2006 semester. Based on TwoDrawingPanelApplet created originally by Carl Alphonce.
Field Summary | |
---|---|
static Row |
BASE
|
static DrawingCanvas |
CENTERPANEL
|
static DrawingCanvas |
LEFTPANEL
Other CSE115 classes should use these for creating themselves. |
static DrawingCanvas |
RIGHTPANEL
|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Lab3Applet()
Create the Applet, set the size, and create the drawingpanels for everything else to use. |
Method Summary | |
---|---|
static void |
clearAll()
Clears all the canvases. |
static void |
clearCenter()
Clears the center canvas. |
static void |
clearLeft()
Clears the left canvas. |
static void |
clearRight()
Clears the right canvas. |
static DrawingCanvas |
nextPanel()
Ensures that only one element is on each panel, returns the panels in order left to right. |
Methods inherited from class javax.swing.JApplet |
---|
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static DrawingCanvas LEFTPANEL
public static DrawingCanvas CENTERPANEL
public static DrawingCanvas RIGHTPANEL
public static Row BASE
Constructor Detail |
---|
public Lab3Applet()
Method Detail |
---|
public static void clearLeft()
public static void clearCenter()
public static void clearRight()
public static void clearAll()
public static DrawingCanvas nextPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |