All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- addNotify().
Method in class life.LifeDisplay
-
- backgroundColor.
Variable in class life.GridDisplay
- Background color.
- backgroundColorChoice.
Variable in class life.LifeDisplay
-
- backgroundColorChoice_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Background Color selection.
- cellColor.
Variable in class life.GridDisplay
-
Cell color.
- cellColorChoice.
Variable in class life.LifeDisplay
-
- cellColorChoice_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Cell Color selection.
- cellColors.
Variable in class life.GridDisplay
- Available
Cell colors.
- cellHeight.
Variable in class life.GridDisplay
- Width and height of
Cells in this GridDisplay.
- cellWidth.
Variable in class life.GridDisplay
- Width and height of
Cells in this GridDisplay.
- CONTINUOUS.
Static variable in class life.Life
- Generate life until the user aborts.
- currX.
Variable in class life.GridDisplay
- X grid coordinate of
Cell over which mouse
was most recently pressed.
- currY.
Variable in class life.GridDisplay
- Y grid coordinate of
Cell over which mouse
was most recently pressed.
- delaySlider.
Variable in class life.LifeDisplay
-
- delaySlider_actionPerformed(ActionEvent).
Method in class life.LifeDisplay
- Respond to movement of Delay slider.
- drawButton.
Variable in class life.LifeDisplay
-
- DRAWING.
Static variable in class life.GridDisplay
- The user is in draw mode.
- drawMode.
Variable in class life.GridDisplay
- Current drawing mode.
- drawModeGroup.
Variable in class life.LifeDisplay
-
- drawModeGroup_itemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Draw Mode selection.
- eraseButton.
Variable in class life.LifeDisplay
-
- ERASING.
Static variable in class life.GridDisplay
- The user is in erase mode.
- fComponentsAdjusted.
Variable in class life.LifeDisplay
-
- fill(int).
Method in class life.Grid
- Fill the
Grid with dead cells, living cells,
or with a random pattern.
- FILL_ALIVE.
Static variable in class life.Grid
- Fill the
Grid with living cells.
- FILL_DEAD.
Static variable in class life.Grid
- Fill the
Grid with dead cells.
- FILL_RANDOM.
Static variable in class life.Grid
- Fill the
Grid randomly.
- generate(int).
Method in class life.Life
- Start generating life.
- generationLabel.
Variable in class life.LifeDisplay
-
- getAge(int, int).
Method in class life.Grid
- Get the age of the
Cell at the specified x-y coordinates.
- getAge(int, int).
Method in class life.Life
- Get the age of the cell at the specified x-y coordinate.
- getDelay().
Method in class life.Life
- Get the delay between frames.
- getDirtyCells().
Method in class life.Life
- Return the cells in the grid that have changed
since the last generation and therefore need to be repainted.
- getGeneration().
Method in class life.Life
- Get the current generation number.
- getGridHeight().
Method in class life.Life
- Get the height of the grid.
- getGridWidth().
Method in class life.Life
- Get the width of the grid.
- getMaxAge().
Method in class life.Grid
- Get the maximum age for this
Grid.
- getWraparound().
Method in class life.Life
- Are neighbors counted using wraparound?
- Grid(int, int).
Constructor for class life.Grid
- Construct a new
Grid of specified width and height
and fill the Grid with dead Cells.
- Grid(int, int, int).
Constructor for class life.Grid
- Construct a new
Grid of specified width and height
and fill the Grid's Cells.
- gridDisplay.
Variable in class life.LifeDisplay
- The
GridDisplay used to display this
LifeDisplay.
- GridDisplay(Life, LifeDisplay).
Constructor for class life.GridDisplay
-
Construct a
GridDisplay to display theLife
within LifeDisplay.
- GridDisplay_MouseDrag(MouseEvent).
Method in class life.GridDisplay
- Respond to a mouse drag.
- GridDisplay_MousePress(MouseEvent).
Method in class life.GridDisplay
- Respond to a mouse press.
- gridHeight.
Variable in class life.GridDisplay
- Width and height of this
GridDisplay (in Cells).
- gridSizeChoice.
Variable in class life.LifeDisplay
-
- gridSizeChoice_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Grid Size selection.
- gridWidth.
Variable in class life.GridDisplay
- Width and height of this
GridDisplay (in Cells).
- height.
Variable in class life.GridDisplay
- Width and height of this
GridDisplay (in pixels).
- init().
Method in class life.LifeDisplay
- Initialize the applet.
- isAlive(int, int).
Method in class life.Grid
- Is the
Cell at the specified x-y coordinates alive?
- isAlive(int, int).
Method in class life.Life
- Is the cell at the specified x-y coordinate alive?
- label1.
Variable in class life.LifeDisplay
-
- label2.
Variable in class life.LifeDisplay
-
- label3.
Variable in class life.LifeDisplay
-
- label4.
Variable in class life.LifeDisplay
-
- label5.
Variable in class life.LifeDisplay
-
- label6.
Variable in class life.LifeDisplay
-
- label7.
Variable in class life.LifeDisplay
-
- label8.
Variable in class life.LifeDisplay
-
- Life(LifeDisplay).
Constructor for class life.Life
- Creates a new
Life with the given
LifeDisplay.
- LifeDisplay().
Constructor for class life.LifeDisplay
-
- lifeFunction(int, int).
Method in class life.Life
- Generate the next generation of the cell at the specified
x-y coordinates.
- maxAge.
Variable in class life.Grid
- The maximum age of
Cells in the Grid.
- maxAge.
Variable in class life.GridDisplay
- Maximum
Cell age.
- neighbors(int, int, boolean).
Method in class life.Grid
- Calculate how many neighbors a
Cell has.
- nextGen(int, int, boolean, int, boolean).
Method in class life.Grid
- Produce the next generation of a
Cell.
- offGraphics.
Variable in class life.GridDisplay
- Offscreen graphics context.
- offImage.
Variable in class life.GridDisplay
- Offscreen drawing Image.
- OLD_ALIVE.
Static variable in class life.Grid
- Used to construct living
Cells with maximum age.
- OLD_DEAD.
Static variable in class life.Grid
- Used to construct dead
Cells with maximum age.
- paint(Graphics).
Method in class life.GridDisplay
- Default paint() method.
- paint(Graphics).
Method in class life.LifeDisplay
- Paint method.
- paint(Graphics, boolean).
Method in class life.GridDisplay
-
Paint with option to paint only the dirty (changed)
Cells
in the GridDisplay.
- paintAll.
Variable in class life.GridDisplay
- Paint all cells in
GridDisplay or only those
which have changed since last generation?
- paintGridDisplay(boolean).
Method in class life.LifeDisplay
- Display the
Life.
- parent.
Variable in class life.GridDisplay
- The parent
LifeDisplay of this GridDisplay.
- pixelXToGridX(int).
Method in class life.GridDisplay
- Convert a pixel X coordinate to a
GridDisplay X coordinate.
- pixelYToGridY(int).
Method in class life.GridDisplay
- Convert a pixel Y coordinate to
GridDisplay Y coordinate.
- randomize().
Method in class life.Life
- Randomize the current grid and reset the generation number
to zero.
- randomizeButton.
Variable in class life.LifeDisplay
-
- randomizeButton_Action(ActionEvent).
Method in class life.LifeDisplay
- Respond to Randomize button press.
- reset().
Method in class life.Life
- Reset the current grid to dead cells and reset the generation number
to zero.
- resetButton.
Variable in class life.LifeDisplay
-
- resetButton_Action(ActionEvent).
Method in class life.LifeDisplay
- Respond to Reset button press.
- run().
Method in class life.Life
- Generate life in a separate thread.
- setBackgroundColor(Color).
Method in class life.GridDisplay
- Set the current background color.
- setCell(int, int, Grid. Cell).
Method in class life.Grid
- Set the
Cell at the specified x-y coordinate
to a given Cell.
- setCell(int, int, Grid. Cell).
Method in class life.Life
- Copy the age and life status (i.e., living or dead) from the
specified cell into the cell at the specified x-y coordinate of the
grid.
- setCellColor(Color).
Method in class life.GridDisplay
- Set the current
Cell color.
- setDelay(long).
Method in class life.Life
- Set the delay between frames.
- setDrawMode(int).
Method in class life.GridDisplay
- Set the current drawing mode.
- setGeneration(int).
Method in class life.Life
- Set the current generation number.
- setGridSize().
Method in class life.GridDisplay
- Set the size of the grid.
- setGridSize(int, int).
Method in class life.Life
- Set the width and height of the grid.
- setMaxAge(int).
Method in class life.Grid
- Set the maximum age for this
Grid.
- setMaxAge(int).
Method in class life.Life
- Set the maximum age of cells in the grid.
- setOldAlive(int, int).
Method in class life.Grid
- Set the
Cell at the specified x-y coordinates to a
living Cell of maximum age.
- setOldAlive(int, int).
Method in class life.Life
- Set the cell at the specified x-y coordinate to a living cell with
the maximum allowable age.
- setOldDead(int, int).
Method in class life.Grid
- Set the
Cell at the specified x-y coordinates to a
dead Cell of maximum age.
- setOldDead(int, int).
Method in class life.Life
- Set the cell at the specified x-y coordinate to a dead cell with
the maximum allowable age.
- setPaintAll(boolean).
Method in class life.GridDisplay
- Indicate whether all
Cells in the GridDisplay
should be displayed or only the dirty Cells.
- setShades(int).
Method in class life.GridDisplay
-
Set the current number of shades of colors.
- setSize(int, int, boolean).
Method in class life.Grid
- Set the width and height of the
Grid.
- setWraparound(boolean).
Method in class life.Life
- Instruct the
Life to either use or not use wraparound
when counting neighbors.
- shades.
Variable in class life.GridDisplay
- Number of shades.
- shadesChoice.
Variable in class life.LifeDisplay
-
- shadesChoice_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Shades selection.
- skipFrames.
Variable in class life.LifeDisplay
- Should frames be skipped to maintain a constant frame display rate?
- skipFramesCheckbox.
Variable in class life.LifeDisplay
-
- skipFramesCheckbox_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Skip Frames button press.
- startButton.
Variable in class life.LifeDisplay
-
- startButton_Action(ActionEvent).
Method in class life.LifeDisplay
- Respond to Start button press.
- STEP.
Static variable in class life.Life
- Generate one generation of life.
- stepButton.
Variable in class life.LifeDisplay
-
- stepButton_Action(ActionEvent).
Method in class life.LifeDisplay
- Respond to Step button press.
- stop().
Method in class life.Life
- Stop generating life.
- stop().
Method in class life.LifeDisplay
- Stop the applet.
- stopButton.
Variable in class life.LifeDisplay
-
- stopButton_Action(ActionEvent).
Method in class life.LifeDisplay
- Respond to Stop button press.
- stringToColor(String).
Method in class life.LifeDisplay
- Convert a color's name to a
Color.
- theLife.
Variable in class life.GridDisplay
- The
Life object to be displayed by this
GridDisplay.
- theLife.
Variable in class life.LifeDisplay
- The
Life displayed by this LifeDisplay.
- update(Graphics).
Method in class life.GridDisplay
- Update the
GridDisplay.
- update(Graphics).
Method in class life.LifeDisplay
- Update method.
- width.
Variable in class life.GridDisplay
- Width and height of this
GridDisplay (in pixels).
- wraparoundCheckbox.
Variable in class life.LifeDisplay
-
- wraparoundCheckBox_ItemStateChanged(ItemEvent).
Method in class life.LifeDisplay
- Respond to Wraparound button press.