|
||||||||||
| 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
|
+--BaseApplet
|
+--BreadthFirstApplet
Applet for demonstrating breadth-first search
| Nested Class Summary | |
(package private) class |
BreadthFirstApplet.DelayChoiceListener
An inner class defining a listener for ItemEvents to the delay choice. |
(package private) class |
BreadthFirstApplet.SampleChoiceListener
An inner class defining a listener for ItemEvents to the sample choice. |
| Field Summary | |
(package private) java.awt.Choice |
delayChoice
|
(package private) static int[] |
delayOption
|
(package private) AppletGrid |
grid
|
(package private) int |
gridSize
|
(package private) static int |
initialSampleIndex
|
(package private) java.awt.Font |
mainBold
|
(package private) Sample[] |
sample
|
(package private) java.awt.Choice |
sampleChoice
|
(package private) static java.lang.String |
stepsString
|
(package private) int |
stepsTaken
|
(package private) int |
xGridOffset
|
(package private) int |
xString
|
(package private) int |
yGridOffset
|
(package private) int |
yString
|
| Fields inherited from class BaseApplet |
backgroundColor, currentDelay, foregroundColor, image, myThread, offScreen |
| Fields inherited from class java.applet.Applet |
|
| Fields inherited from class java.awt.Panel |
|
| Fields inherited from class java.awt.Container |
|
| 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 | |
BreadthFirstApplet()
|
|
| Method Summary | |
(package private) void |
drawEverything()
Draw the results of one step. |
(package private) void |
drawGrid()
Draw the grid and its contents. |
(package private) void |
drawSteps(int steps)
Draw the String indicating number of steps. |
void |
init()
Initialize the applet. |
(package private) void |
setDelays(java.awt.Choice delayChoice,
int[] delayOption)
Set the delay values in a choice menu. |
(package private) void |
setInput(int index)
Set the input sample, create a new Grid, and initialize the search. |
(package private) void |
setSamples(java.awt.Choice sampleChoice,
Sample[] sample)
Set the sample titles in a choice menu. |
void |
step()
Do a single step of the breadth-first search. |
| Methods inherited from class BaseApplet |
clearOffScreenBuffer, continueRunning, createOffScreenBuffer, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, paintBuffer, run, setDelay, sleep, sleep, start, update |
| Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static int initialSampleIndex
static java.lang.String stepsString
java.awt.Font mainBold
static int[] delayOption
int xGridOffset
int yGridOffset
int gridSize
int xString
int yString
java.awt.Choice sampleChoice
java.awt.Choice delayChoice
Sample[] sample
AppletGrid grid
int stepsTaken
| Constructor Detail |
public BreadthFirstApplet()
| Method Detail |
public void init()
init in class BaseApplet
void setSamples(java.awt.Choice sampleChoice,
Sample[] sample)
void setDelays(java.awt.Choice delayChoice,
int[] delayOption)
void setInput(int index)
public void step()
step in class BaseAppletvoid drawEverything()
void drawGrid()
void drawSteps(int steps)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||