A C D E F G H I L M N O P R S T U W

A

add(Direction) - Method in class com.holub.life.Direction
 
addClockListener(Clock.Listener) - Method in class com.holub.life.Clock
Add a listener that's notified every time the clock ticks: Clock.instance().addClockListener ( new Clock.Listener() { public void tick() { System.out.println("tick!")
addLine(Object, String, String, ActionListener) - Static method in class com.holub.ui.MenuSite
Adds a line item to a menu.
addMapping(String, String, String) - Static method in class com.holub.ui.MenuSite
Add a name-to-label mapping manually.
addMenu(Object, String) - Static method in class com.holub.ui.MenuSite
Create and add an empty menu to the menu bar.
ALL - Static variable in class com.holub.life.Direction
 

C

cancelSubscription(Object) - Method in class com.holub.tools.Publisher
 
Cell - Interface in com.holub.life
This interface is the basic unit that comprises a life board.
Cell.Memento - Interface in com.holub.life
The Cell.Memento interface stores the state of a Cell and all its subcells for future restoration.
clear() - Method in interface com.holub.life.Cell
Set the cell and all subcells into a "dead" state.
clear() - Method in class com.holub.life.Direction
 
clear() - Method in class com.holub.life.Neighborhood
 
clear() - Method in class com.holub.life.Resident
 
Clock - Class in com.holub.life
The Clock class handles the timing of gameboard updates.
Clock.Listener - Interface in com.holub.life
Implement this interface to be notified about clock ticks.
Colors - Interface in com.holub.ui
Provides symbolic definitions for various colors not defined in the Color class.
com.holub.life - package com.holub.life
 
ConditionVariable - Class in com.holub.asynch
This class is a simplified version of the com.asynch.Condition class described in Taming Java Threads.
ConditionVariable(boolean) - Constructor for class com.holub.asynch.ConditionVariable
 
create() - Method in interface com.holub.life.Cell
Return a fresh (newly created) object identical to yourself in content.
create() - Method in class com.holub.life.Neighborhood
The "clone" method used to create copies of the current neighborhood.
create() - Method in class com.holub.life.Resident
 
createMemento() - Method in interface com.holub.life.Cell
This method is used by container of the outermost cell.
createMemento() - Method in class com.holub.life.Neighborhood
 
createMemento() - Method in class com.holub.life.Resident
Mementos must be created by Neighborhood objects.

D

DARK_BLUE - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x00, 0x99);    
DARK_GREEN - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x66, 0x00);    
DARK_ORANGE - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0x66, 0x00);    
DARK_PURPLE - Static variable in interface com.holub.ui.Colors
RGB=(0x99, 0x00, 0x99);    
DARK_RED - Static variable in interface com.holub.ui.Colors
RGB=(0x99, 0x00, 0x00);    
DARK_YELLOW - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0xff, 0x00);    
deliverTo(Object) - Method in interface com.holub.tools.Publisher.Distributor
 
Direction - Class in com.holub.life
The Direction class is used to indicate in just what way a particular Cell is unstable.
Direction() - Constructor for class com.holub.life.Direction
 
Direction(Direction) - Constructor for class com.holub.life.Direction
 
DUMMY - Static variable in interface com.holub.life.Cell
The DUMMY Singleton represents a permanently dead (thus stable) cell.

E

EAST - Static variable in class com.holub.life.Direction
 
edge(int, int) - Method in interface com.holub.life.Cell
Access a specific contained cell located at the edge of the composite cell.
edge(int, int) - Method in class com.holub.life.Neighborhood
Return the edge cell in the indicated row and column.
edge(int, int) - Method in class com.holub.life.Resident
This cell is monetary, so it's at every edge of itself.
equals(Direction) - Method in class com.holub.life.Direction
 
establish(JFrame) - Static method in class com.holub.ui.MenuSite
Establish a JFrame as the program's menu site.

F

figureNextState(Cell, Cell, Cell, Cell, Cell, Cell, Cell, Cell) - Method in interface com.holub.life.Cell
Figure out the next state of the cell, given the specified neighbors.
figureNextState(Cell, Cell, Cell, Cell, Cell, Cell, Cell, Cell) - Method in class com.holub.life.Neighborhood
Figures the next state of the current neighborhood and the contained neigborhoods (or cells).
figureNextState(Cell, Cell, Cell, Cell, Cell, Cell, Cell, Cell) - Method in class com.holub.life.Resident
figure the next state.
Files - Class in com.holub.io
A utility that handles various File-related operations.
Files() - Constructor for class com.holub.io.Files
 
flush(OutputStream) - Method in interface com.holub.life.Storable
 

G

getMyMenuItem(Object, String, String) - Static method in class com.holub.ui.MenuSite
Get a menu item for external modification.
GREEN - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x99, 0x00);    

H

has(Direction) - Method in class com.holub.life.Direction
 

I

instance() - Static method in class com.holub.life.Clock
The clock is a singleton.
instance() - Static method in class com.holub.life.Universe
Singleton Accessor.
isAlive() - Method in interface com.holub.life.Cell
Return true if this cell or any subcells are alive.
isAlive(Point) - Method in interface com.holub.life.Cell.Memento
On restoration of a cell from a memento, indicate that a cell is alive.
isAlive() - Method in class com.holub.life.Neighborhood
 
isAlive() - Method in class com.holub.life.Resident
 
isDisruptiveTo() - Method in interface com.holub.life.Cell
Returns a Direction indicated the directions of the cells that have changed state.
isDisruptiveTo() - Method in class com.holub.life.Neighborhood
Shows the direction of the cells along the edge of the block that will change state in the next transition.
isDisruptiveTo() - Method in class com.holub.life.Resident
 
isTrue() - Method in class com.holub.asynch.ConditionVariable
 

L

Life - Class in com.holub.life
An implemenation of Conway's Game of Life.
LIGHT_BLUE - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x00, 0xff);    
LIGHT_GREEN - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0xff, 0x00);    
LIGHT_ORANGE - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0xcc, 0x00);    
LIGHT_PURPLE - Static variable in interface com.holub.ui.Colors
RGB=(0xcc, 0x99, 0xff);    
LIGHT_RED - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0x00, 0x00);    
LIGHT_YELLOW - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0xff, 0xdd);    
LOAD - Static variable in interface com.holub.life.Cell
Possible value for the "load" argument to transfer()
load(InputStream) - Method in interface com.holub.life.Storable
 

M

main(String[]) - Static method in class com.holub.life.Life
 
main(String[]) - Static method in class com.holub.ui.MenuSite.Test
 
mapNames(URL) - Static method in class com.holub.ui.MenuSite
Establishes a "map" of (hidden) names to (visible) labels and shortcuts.
markAsAlive(Point) - Method in interface com.holub.life.Cell.Memento
On creation of the memento, indicate that a cell is alive.
MEDIUM_BLUE - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x00, 0xcc);    
MEDIUM_GREEN - Static variable in interface com.holub.ui.Colors
RGB=(0x00, 0x99, 0x00);    
MEDIUM_ORANGE - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0x99, 0x00);    
MEDIUM_PURPLE - Static variable in interface com.holub.ui.Colors
RGB=(0xcc, 0x00, 0xff);    
MEDIUM_RED - Static variable in interface com.holub.ui.Colors
RGB=(0xcc, 0x00, 0x00);    
MEDIUM_YELLOW - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0xff, 0x99);    
MenuSite - Class in com.holub.ui
A MenuSite is a frame that holds a menu bar.
MenuSite.Test - Class in com.holub.ui
This inner class tests the MenuSite.

N

Neighborhood - Class in com.holub.life
A group of Cell objects.
Neighborhood(int, Cell) - Constructor for class com.holub.life.Neighborhood
Create a new Neigborhood containing gridSize-by-gridSize clones of the prototype.
NONE - Static variable in class com.holub.life.Direction
 
NORTH - Static variable in class com.holub.life.Direction
 
NORTHEAST - Static variable in class com.holub.life.Direction
 
NORTHWEST - Static variable in class com.holub.life.Direction
 

O

OCHRE - Static variable in interface com.holub.ui.Colors
RGB=(0xcc, 0x99, 0x00);    
ORANGE - Static variable in interface com.holub.ui.Colors
RGB=(0xff, 0x99, 0x00);    

P

paint(Graphics) - Method in class com.holub.life.Universe
Override paint to ask the outermost Neighborhood (and any subcells) to draw themselves recursively.
publish(Publisher.Distributor) - Method in class com.holub.tools.Publisher
Publish an event using the deliveryAgent.
Publisher - Class in com.holub.tools
This class replaces the Multicaster class that's described in Taming Java Threads.
Publisher() - Constructor for class com.holub.tools.Publisher
 
Publisher.Distributor - Interface in com.holub.tools
 
PURPLE - Static variable in interface com.holub.ui.Colors
RGB=(0xcc, 0x00, 0xff);    

R

redraw(Graphics, Rectangle, boolean) - Method in interface com.holub.life.Cell
Redraw yourself in the indicated rectangle on the indicated Graphics object if ncessary.
redraw(Graphics, Rectangle, boolean) - Method in class com.holub.life.Neighborhood
Redraw the current neighborhood only if necessary (something changed in the last transition).
redraw(Graphics, Rectangle, boolean) - Method in class com.holub.life.Resident
 
removeMyMenus(Object) - Static method in class com.holub.ui.MenuSite
Remove all items that were added by this requester.
Resident - Class in com.holub.life
The Resident class implements a single cell---a "resident" of a block.
Resident() - Constructor for class com.holub.life.Resident
 

S

set(boolean) - Method in class com.holub.asynch.ConditionVariable
 
setEnable(Object, boolean) - Static method in class com.holub.ui.MenuSite
Disable or enable all menus and menu items added by a specific requester.
SOUTH - Static variable in class com.holub.life.Direction
 
SOUTHEAST - Static variable in class com.holub.life.Direction
 
SOUTHWEST - Static variable in class com.holub.life.Direction
 
startTicking(int) - Method in class com.holub.life.Clock
Start up the clock.
stop() - Method in class com.holub.life.Clock
Stop the clock
Storable - Interface in com.holub.life
All mementos created by the Cells are Storable.
STORE - Static variable in interface com.holub.life.Cell
Possible value for the "load" argument to transfer()
subscribe(Object) - Method in class com.holub.tools.Publisher
 

T

the(Direction) - Method in class com.holub.life.Direction
 
tick() - Method in interface com.holub.life.Clock.Listener
 
tick() - Method in class com.holub.life.Clock
Force the clock to "tick," even if it's not time for a tick.
transfer(Storable, Point, boolean) - Method in interface com.holub.life.Cell
This method is used internally to save or restore the state of a cell from a memento.
transfer(Storable, Point, boolean) - Method in class com.holub.life.Neighborhood
Cause subcells to add an annotation to the indicated memento if they happen to be alive.
transfer(Storable, Point, boolean) - Method in class com.holub.life.Resident
 
transition() - Method in interface com.holub.life.Cell
Transition to the state computed by the most recent call to Cell.figureNextState(com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell, com.holub.life.Cell)
transition() - Method in class com.holub.life.Neighborhood
Transition the neighborhood to the previously-computed state.
transition() - Method in class com.holub.life.Resident
 

U

Universe - Class in com.holub.life
The Universe is a mediator that sits between the Swing event model and the Life classes.
userClicked(Point, Rectangle) - Method in interface com.holub.life.Cell
A user has clicked somewhere within you.
userClicked(Point, Rectangle) - Method in class com.holub.life.Neighborhood
Notification of a mouse click.
userClicked(Point, Rectangle) - Method in class com.holub.life.Resident
 
userSelected(String, String, String, String) - Static method in class com.holub.io.Files
Throw up a file choser and return the file that the user selects.

W

waitForTrue() - Method in class com.holub.asynch.ConditionVariable
 
WEST - Static variable in class com.holub.life.Direction
 
widthInCells() - Method in interface com.holub.life.Cell
Return the specified width plus the current cell's width
widthInCells() - Method in class com.holub.life.Neighborhood
 
widthInCells() - Method in class com.holub.life.Resident
 

A C D E F G H I L M N O P R S T U W