Skip navigation links
A B C D E F G H I L M N O P R S T U V W X Y Z 

A

A_BOUNDED_GRID - Static variable in class edu.kzoo.grid.gui.GridPkgFactory.ClassCategory
Indicates a class representing a bounded grid with a two-parameter constructor specifying the number of rows and number of columns in the grid.
A_GRID_OBJECT - Static variable in class edu.kzoo.grid.gui.GridPkgFactory.ClassCategory
Indicates a class representing a bounded grid.
act() - Method in class edu.kzoo.grid.GridObject
Acts.
act() - Method in class edu.kzoo.grid.gui.ControlButton
Performs the button action associated with this button.
act() - Method in class edu.kzoo.grid.gui.GeneratedButtonList.GeneratedThreadedControlButton
Performs the button action associated with this button; actually delegates the button action to the method in the target object associated with this button.
act() - Method in class edu.kzoo.grid.gui.nuggets.BGColorChoiceMenu
Changes the background color and, if there is a display defined for the graphical user interface, redisplays the grid.
act() - Method in class edu.kzoo.grid.gui.nuggets.ClearGridButton
Clears the grid.
act() - Method in class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Performs any actions necessary when the color changes.
act() - Method in class edu.kzoo.grid.gui.nuggets.InitializationButton
Invokes the initialize method on the initializer object provided to this object's constructor.
act() - Method in class edu.kzoo.grid.gui.nuggets.NewBoundedGridButton
Creates a new grid and notifies the user interface.
act() - Method in class edu.kzoo.grid.gui.ThreadedControlButton
Performs the button action associated with this button.
ActiveGridAppController - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
An ActiveGridAppController controls the running of a grid application.
ActiveGridAppController() - Constructor for class edu.kzoo.grid.gui.ActiveGridAppController
 
add(GridObject) - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Adds a new object to this internal grid representation at the location it specifies.
add(GridObject) - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Adds a new object to this internal grid representation at the location it specifies.
add(GridObject, Location) - Method in class edu.kzoo.grid.Grid
Adds a new object to this grid at the specified location.
add(GridObject) - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Adds a new object to this environment at the location it specifies.
addAboutMenuItem(String, String) - Method in class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Adds an "About This_Application" menu option to this menu, where This_Application is replaced with applName.
addBoundedGridClassNames(String[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Adds bounded grid classes to the set maintained by the factory.
addBoundedGrids() - Method in class edu.kzoo.grid.gui.GridChoiceComboBox
Adds bounded grid classes to the combo box.
addChoicesFromFactory(JComboBox<GridEditor.GridObjectChoice>) - Method in class edu.kzoo.grid.gui.GridEditor
Builds up the list of grid object type choices for the editing palette.
addClassesToFactory(String[], String) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Helper to add new classes to the factory.
addClassesToFactory(String[], GridPkgFactory.ClassCategory) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Helper to add new classes to the factory.
addColor(String, Color) - Method in class edu.kzoo.util.NamedColor.ColorMap
Adds a color to the map.
addColorChoice(NamedColor) - Method in class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Adds a new menu item to the menu with the given color, using its name as the name in the menu.
addColorChoice(String, Color) - Method in class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Adds a new menu item to the menu with the given name and color.
addDecorator(DisplayDecorator) - Method in class edu.kzoo.grid.display.ScaledDisplay
Add a Decorator to the display in order to add some functionality.
addDirectory(String) - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Adds the specified directory to the list of directories in which to look for image files.
addGridChangeListener(GridChangeListener) - Method in class edu.kzoo.grid.gui.GridAppFrame
Registers the specified object as interested in being notified of changes in the identify of the grid being modeled.
addGridObjClassNames(String[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Adds grid object classes to the set maintained by the factory.
addHelpDocMenuItem(String) - Method in class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Adds a "Help" menu option to this menu that, when selected, displays the specified help document in a scrolling dialog window.
addQuitMenuItem() - Method in class edu.kzoo.grid.gui.nuggets.MinimalFileMenu
Adds a Quit menu option to this menu.
addSuffix(String) - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Adds the specified suffix to the list of image suffixes to look for.
addToGrid(Grid, Location) - Method in class edu.kzoo.grid.GridObject
Adds this object to the specified grid at the specified location.
addUnboundedGridClassNames(String[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Adds unbounded grid classes to the set maintained by the factory.
addUnboundedGrids() - Method in class edu.kzoo.grid.gui.GridChoiceComboBox
Adds unbounded grid classes to the combo box.
adjust(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ScaledDisplay
Adjusts the graphics system for drawing an object, as appropriate.
adjustForDirection(GridObject, Graphics2D) - Static method in class edu.kzoo.grid.display.RotatedDecorator
Adjusts the graphics system for drawing an object with direction.
allObjects() - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Returns all the objects in this grid.
allObjects() - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Returns all the objects in this grid.
allObjects() - Method in class edu.kzoo.grid.Grid
Returns all the objects in this grid.
allObjects() - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Returns all the objects in this grid.
ALWAYS_DISABLED - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should always be disabled.
ALWAYS_ENABLED - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should always be enabled.
AN_UNBOUNDED_GRID - Static variable in class edu.kzoo.grid.gui.GridPkgFactory.ClassCategory
Indicates a class representing an unbounded grid with a default (no-parameter) constructor.
appController - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 
approveSelection() - Method in class edu.kzoo.grid.gui.GridFileChooser
Called when the user hits the approve button (Save/Open) to confirm the selected file is acceptable.
Array2DGridRep(int, int) - Constructor for class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Constructs an empty Array2DGridRep representation with the given dimensions.
ArrayListGrid - Class in edu.kzoo.grid
Grid Container Package:
The ArrayListGrid class encapsulates two public inner classes that extend the Grid class to model a two-dimensional grid by keeping track of their contents in ArrayList objects.
ArrayListGrid.ArrayListGridRep - Class in edu.kzoo.grid
Internal representation for an ArrayList-based implementation of a Grid class.
ArrayListGrid.Bounded - Class in edu.kzoo.grid
An ArrayListGrid.Bounded object is a rectangular, bounded two-dimensional container data structure implemented as an ArrayList of the objects it contains.
ArrayListGrid.Unbounded - Class in edu.kzoo.grid
An ArrayListGrid.Unounded object is an unbounded two-dimensional container data structure implemented as an ArrayList of the objects it contains.
ArrayListGridRep(Grid.ValidityChecker) - Constructor for class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Constructs an empty ArrayListGridRep representation of a grid.
associate(String, GridObjectDisplay) - Static method in class edu.kzoo.grid.display.DisplayMap
Associates a display object with a grid object class.

B

backgroundColor() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Gets the background color for displaying the grid.
backgroundDisplay - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
BasicGridFileMenu - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The BasicGridFileMenu class provides a file menu for creating, reading, and writing grids.
BasicGridFileMenu(GridAppFrame, GridDataFileHandler) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Creates a File menu tied to the specified frame for creating, reading, and writing grids.
BasicGridFileMenu(GridAppFrame, FileMenuActionHandler, GridDataFileHandler) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Creates a File menu tied to the specified frame for creating, reading, and writing grids.
BasicHelpMenu - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
A BasicHelpMenu object represents a Help menu with two standard entries: "About Application_Name" and "Help", where "Application_Name" is the name of the application provided in a parameter to the constructor.
BasicHelpMenu() - Constructor for class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Constructs an empty Help menu.
BasicHelpMenu(String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Constructs a Help menu with one "About This_Application" entry, where This_Application is replaced with applName.
BasicHelpMenu(String, String, String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Constructs a Help menu with one "About This_Application" entry, where This_Application is replaced with applName.
BasicHelpMenu(String, String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Constructs a Help menu with two standard entries: "About This_Application" and "Help", where This_Application is replaced with applName.
BasicHelpMenu(String, String, String, String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Constructs a Help menu with two standard entries: "About This_Application" and "Help", where This_Application is replaced with applName.
bgColor - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
BGColorChoiceMenu - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The BGColorChoiceMenu class provides a drop-down menu for setting the background color of a grid.
BGColorChoiceMenu(GridAppFrame) - Constructor for class edu.kzoo.grid.gui.nuggets.BGColorChoiceMenu
Constructs a menu of color choices for setting the background color of a grid.
BGColorChoiceMenu(GridAppFrame, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BGColorChoiceMenu
Constructs a menu of color choices for setting the background color of a grid.
BGColorChoiceMenu(GridAppFrame, String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.BGColorChoiceMenu
Constructs a menu of color choices for setting the background color of a grid.
BGColorChoiceMenu(GridAppFrame, String, ColorChoiceDDMenu.ColorChoice[], ColorChoiceDDMenu.ColorChoice) - Constructor for class edu.kzoo.grid.gui.nuggets.BGColorChoiceMenu
Constructs a menu of color choices for setting the background color of a grid.
BLACK - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
BLACK - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
BLUE - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
BLUE - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
Bounded(int, int) - Constructor for class edu.kzoo.grid.ArrayListGrid.Bounded
Constructs an empty ArrayListGrid.Bounded object with the given dimensions.
Bounded(boolean, int, int) - Constructor for class edu.kzoo.grid.ArrayListGrid.Bounded
Constructs an empty ArrayListGrid.Bounded object with the given dimensions.
boundedChooser - Variable in class edu.kzoo.grid.gui.GridFileChooser
 
boundedClass() - Method in class edu.kzoo.grid.gui.GridFileChooser
Returns the bounded grid class selected on the open accessory.
BoundedGrid - Class in edu.kzoo.grid
Grid Container Package:
A BoundedGrid is a rectangular, bounded two-dimensional container data structure.
BoundedGrid(int, int) - Constructor for class edu.kzoo.grid.BoundedGrid
Constructs an empty BoundedGrid object with the given dimensions.
BoundedGrid(boolean, int, int) - Constructor for class edu.kzoo.grid.BoundedGrid
Constructs an empty BoundedGrid object with the given dimensions.
BoundedGrid.Array2DGridRep - Class in edu.kzoo.grid
The Array2DGridRep class represents an internal bounded grid using a two-dimensional array.
boundedGridClasses() - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Returns the set of bounded grid classes known to the factory.
BoundedGridValidityChecker(int, int) - Constructor for class edu.kzoo.grid.Grid.BoundedGridValidityChecker
Constructs a BoundedGridValidityChecker object.
BROWN - Static variable in class edu.kzoo.util.NamedColor
 
buttonLabelFor(Method) - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Returns the appropriate button label for the given method.
buttonLabelToMethodObjMap - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 

C

calculateGridLineWidth() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns the width of each grid line.
changeLocation(Location) - Method in class edu.kzoo.grid.GridObject
Modifies this grid object's location and notifies the grid.
changeName(String) - Method in class edu.kzoo.util.NamedColor
Changes the name associated with this color to the specified name.
changeNameColorMapping(String, Color) - Method in class edu.kzoo.util.NamedColor.ColorMap
Adds a named color to the map, removing any previous mapping involving either name or c.
changeNameOrColor(String, Color) - Static method in class edu.kzoo.util.NamedColor
Changes a name => color association to the new name and the new color.
CheckeredBackgroundDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
The GridBackgroundDisplay interface specifies the method that must be provided by any class used to display a Grid background.
CheckeredBackgroundDisplay(ScrollableGridDisplay, Color, Color) - Constructor for class edu.kzoo.grid.display.CheckeredBackgroundDisplay
Constructs a background display that draws a checkered background for a grid, using the specified colors.
chooseColor() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu
Follows up when the user picks a new choice from the drop-down menu (specified listener action).
chooseGridObjType() - Method in class edu.kzoo.grid.gui.GridEditor
Follows up when the user picks a new choice from the grid object combo box (specified listener action).
CINNAMON - Static variable in class edu.kzoo.util.NamedColor
 
ClassCategory(int) - Constructor for class edu.kzoo.grid.gui.GridPkgFactory.ClassCategory
Constructs a new ClassCategory object.
ClearGridButton - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The ClearGridButton class represents a button that clears all objects out of a grid.
ClearGridButton(GridAppFrame) - Constructor for class edu.kzoo.grid.gui.nuggets.ClearGridButton
Constructs a button labeled "Clear Grid" that will clear all objects out of a grid.
ClearGridButton(GridAppFrame, String) - Constructor for class edu.kzoo.grid.gui.nuggets.ClearGridButton
Constructs a button that will clear all objects out of a grid.
ClearGridButton(GridAppFrame, boolean) - Constructor for class edu.kzoo.grid.gui.nuggets.ClearGridButton
Constructs a button that will clear all objects out of a grid.
ClearGridButton(GridAppFrame, String, boolean) - Constructor for class edu.kzoo.grid.gui.nuggets.ClearGridButton
Constructs a button that will clear all objects out of a grid.
col() - Method in class edu.kzoo.grid.Location
Returns the column coordinate of this location.
color() - Method in class edu.kzoo.grid.ColorBlock
Gets color value for color block.
color() - Method in class edu.kzoo.grid.TextCell
Gets color of text.
ColorBlock - Class in edu.kzoo.grid
Grid Container Package:
A ColorBlock object encapsulates a color for a colored cell in a grid.
ColorBlock(Color) - Constructor for class edu.kzoo.grid.ColorBlock
Constructs a color block with the specified color.
ColorBlock(Color, Grid, Location) - Constructor for class edu.kzoo.grid.ColorBlock
Constructs a color block with the specified color.
ColorBlockDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A ColorBlockDisplay object displays a ColorBlock object, or any object with a color method, as a color block in a grid.
ColorBlockDisplay() - Constructor for class edu.kzoo.grid.display.ColorBlockDisplay
 
ColorChoice(NamedColor) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorChoice
 
ColorChoice(String, Color) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorChoice
 
ColorChoiceDDMenu - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The ColorChoiceDDMenu class provides a drop-down menu for choosing a color.
ColorChoiceDDMenu() - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu
Creates a color choice menu in which the selected choice to begin with is the "Random" color choice.
ColorChoiceDDMenu(String) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu
Creates a color choice menu in which startingColorChoice is the selected one when the menu is created.
ColorChoiceDDMenu(ColorChoiceDDMenu.ColorChoice) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu
Creates a color choice menu in which startingColorChoice is the selected one when the menu is created.
ColorChoiceDDMenu(ColorChoiceDDMenu.ColorChoice[], ColorChoiceDDMenu.ColorChoice) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu
Creates a color choice menu with the specified color choices and with startingColorChoice as the selected one when the menu is created.
ColorChoiceDDMenu.ColorChoice - Class in edu.kzoo.grid.gui
Nested class used to hold the per-item information for the entries in the combo box of color choices.
ColorChoiceDDMenu.ColorIcon - Class in edu.kzoo.grid.gui
Nested class used to draw the color swatch icon used for color choice entries in the color combo box.
ColorChoiceMenu - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
A ColorChoiceMenu object provides a drop-down menu for choosing a color.
ColorChoiceMenu(String) - Constructor for class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Constructs a menu of color choices.
ColorChoiceMenu(String, String) - Constructor for class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Constructs a menu of color choices.
ColorChoiceMenu(String, ColorChoiceDDMenu.ColorChoice[], ColorChoiceDDMenu.ColorChoice) - Constructor for class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Constructs a menu of color choices.
ColorIcon(Color, int, int) - Constructor for class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorIcon
 
ColorMap() - Constructor for class edu.kzoo.util.NamedColor.ColorMap
 
colorMenu - Variable in class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
 
colToXCoord(int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns X-coordinate of left side of given column.
compareTo(Object) - Method in class edu.kzoo.grid.Location
Compares this location to other for ordering.
componentRequiresGrid(JComponent) - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns true if the given component requires the grid to have been set in order to be enabled; false otherwise.
componentsEnabledOnlyIfGridSet() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the set of components that should be enabled only when the current grid is not null.
componentsEnabledOnlyWhenRunning() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the set of components that should be enabled only when the application is actively running, and should be disabled when the application is ready and waiting for user input.
componentsEnabledOnlyWhenWaiting() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the set of components that should be enabled only when the application is ready and waiting for user input.
constructDisplay(int, int, int, Color) - Method in class edu.kzoo.grid.gui.GridAppFrame
Constructs the grid display at the heart of the graphical user interface.
constructGrid(Class) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an instance of a Grid using the default constructor of the given class.
constructGrid(Class, int, int) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an instance of a Grid using the 2-argument constructor of the given class.
constructGridObject(Class, Grid, Location) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an instance of the given grid object class using either a two-argument constructor that takes a grid and a location or a default constructor followed by a call to add the object to the given grid at the given location.
constructGridObject(Class, Grid, Location, Direction) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an instance of the given grid object class using a three-argument constructor that takes a grid, a location, and a direction.
constructGridObject(Class, Grid, Location, Direction, Color) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an instance of the given grid object class using a four-argument constructor that takes a grid, a location, a direction, and a color.
constructObject(Class<?>, Class<?>[], Object[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Creates an object of the given class.
constructWindowContents(String, int, int, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Constructs the body of a window containing a scrollable display for a grid and its contents.
constructWindowContents(String, Color, int, int, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Constructs the body of a window containing a scrollable display for a grid and its contents.
constructWindowContents() - Method in class edu.kzoo.grid.gui.GridEditor
Constructs the display for a GridEditor using values from the parent frame.
constructWindowContents(String, Color, int, int, int) - Method in class edu.kzoo.grid.gui.GridEditor
Constructs the display for a GridEditor.
containsColor(Color) - Method in class edu.kzoo.util.NamedColor.ColorMap
Checks whether or not the mapping contains a name => color mapping for the given color.
containsName(String) - Method in class edu.kzoo.util.NamedColor.ColorMap
Checks whether or not the mapping contains a color with the given name.
ControlButton - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The ControlButton class represents a button whose button action runs in the same thread as the rest of the graphical user interface.
ControlButton(GridAppFrame, String, boolean) - Constructor for class edu.kzoo.grid.gui.ControlButton
Constructs a button.
createButtons() - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Creates control buttons that, when pressed, will pass a message to the appropriate method in the target object.
createFileChooser() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Creates the file chooser.
createGridCreationDialog() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Creates a grid creation dialog.
createNewGrid() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Creates a new empty grid and invokes the grid editor.
currentColor() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu
Returns the currently selected color.
currentColor() - Method in class edu.kzoo.grid.gui.nuggets.ColorChoiceMenu
Returns the current color from the drop-down menu.
currentGridObjectClass() - Method in class edu.kzoo.grid.gui.GridEditor
Returns the currently selected grid object class.
CUSTOM - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
CYAN - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant

D

DARK_BLUE - Static variable in class edu.kzoo.util.NamedColor
 
DARK_GRAY - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
DARK_GREEN - Static variable in class edu.kzoo.util.NamedColor
 
DATA_FILE_EXT - Static variable in class edu.kzoo.grid.gui.GridFileChooser
 
Debug - Class in edu.kzoo.util
AP® Computer Science Marine Biology Simulation:
The Debug class supports conditional printing of debugging messages.
Debug() - Constructor for class edu.kzoo.util.Debug
 
decorate(GridObjectDisplay, GridObject, Component, Graphics2D) - Method in interface edu.kzoo.grid.display.DisplayDecorator
 
decorate(GridObjectDisplay, GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.RotatedDecorator
Apply the rotating aspect of the decoration.
decorate(GridObjectDisplay, GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ScaledImageTintDecorator
Decorate the ScaledImageDisplay so that it appears tinted.
DEFAULT_MAX_DELAY_MSECS - Static variable in class edu.kzoo.grid.gui.GridAppFrame
Default maximum value for speed slider bar (1000 milliseconds).
DEFAULT_MIN_CELL_SIZE - Static variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
DEFAULT_MIN_DELAY_MSECS - Static variable in class edu.kzoo.grid.gui.GridAppFrame
Default minimum value for speed slider bar (10 milliseconds).
DEFAULT_VIEWABLE_SIZE - Static variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
defaultBounded - Variable in class edu.kzoo.grid.gui.GridFileChooser
 
DefaultDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A DefaultDisplay draws a centered question-mark.
DefaultDisplay() - Constructor for class edu.kzoo.grid.display.DefaultDisplay
 
DefaultDisplayFactory - Class in edu.kzoo.grid.display
Grid Display Package:
The DefaultDisplayFactory class contains methods that provide a suitable default display for a given class.
DefaultDisplayFactory() - Constructor for class edu.kzoo.grid.display.DefaultDisplayFactory
 
defaultUnbounded - Variable in class edu.kzoo.grid.gui.GridFileChooser
 
defineContent() - Method in class edu.kzoo.grid.gui.GridAppFrame
Defines contents of main window panel.
defineContent() - Method in class edu.kzoo.grid.gui.GridEditor
Defines contents of main window panel.
Direction - Class in edu.kzoo.grid
AP® Computer Science Marine Biology Simulation:
The Direction class encapsulates the notion of a compass direction such as North, East, South, West.
Direction() - Constructor for class edu.kzoo.grid.Direction
Constructs a default Direction object facing North.
Direction(int) - Constructor for class edu.kzoo.grid.Direction
Constructs a Direction object.
Direction(String) - Constructor for class edu.kzoo.grid.Direction
Constructs a Direction object.
displayAfterEachStep - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 
DisplayDecorator - Interface in edu.kzoo.grid.display
Grid Display Package:
A DisplayDecorator provides an interface for any decorator that will be used in the Display package.
displayGridAfterButtonActions - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
DisplayMap - Class in edu.kzoo.grid.display
Grid Display Package:
DisplayMap is a collection that maps grid object classes to objects that know how to display them.
DisplayMap() - Constructor for class edu.kzoo.grid.display.DisplayMap
 
DisplayMouseListener() - Constructor for class edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
 
displaysAfterButtonAction() - Method in class edu.kzoo.grid.gui.ControlButton
Returns true if this control button redisplays the the grid after performing the action associated with the button.
done() - Method in class edu.kzoo.grid.gui.GridEditor
Leaves the editor, returning to the parent frame.
doneButton - Variable in class edu.kzoo.grid.gui.GridEditor
 
draw(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ColorBlockDisplay
Draw the given object as a block of color.
draw(GridObject, Component, Graphics2D, Rectangle) - Method in interface edu.kzoo.grid.display.GridObjectDisplay
Method invoked to draw a GridObject.
draw(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.PictureBlockDisplay
Draws a unit-length object using an image.
draw(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ScaledDisplay
Draw the given GridObject object.
draw(GridObject, Component, Graphics2D, Rectangle) - Method in class edu.kzoo.grid.display.ScaledDisplay
Draw the given object.
draw(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ScaledImageDisplay
Draws a unit-length object using an image.
draw(GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.TextDisplay
Draws the given object.
drawBackground(Graphics2D) - Method in class edu.kzoo.grid.display.CheckeredBackgroundDisplay
 
drawBackground(Graphics2D) - Method in interface edu.kzoo.grid.display.GridBackgroundDisplay
Draws the grid background.
drawBackground(Graphics2D) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Draws the grid background.
drawGridlines(Graphics2D) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Draws the gridlines for the grid.
drawGridObject(Graphics2D, GridObject) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Draws one GridObject instance.

E

EAST - Static variable in class edu.kzoo.grid.Direction
 
editGrid() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Enables editing of the existing grid from the parent frame.
edu.kzoo.grid - package edu.kzoo.grid
 
edu.kzoo.grid.display - package edu.kzoo.grid.display
 
edu.kzoo.grid.gui - package edu.kzoo.grid.gui
 
edu.kzoo.grid.gui.nuggets - package edu.kzoo.grid.gui.nuggets
 
edu.kzoo.util - package edu.kzoo.util
 
enableAndDisable() - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables and disables components appropriately.
EnabledDisabledStates - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The EnabledDisabledStates class provides a set of constants describing possible criteria for graphical user interface components to be enabled or disabled.
EnabledDisabledStates() - Constructor for class edu.kzoo.grid.gui.EnabledDisabledStates
 
enableOnlyIfGridSet(JComponent) - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables the given component only when the application is ready and waiting for user input.
enableOnlyWhenRunning(JComponent) - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables the given component only when the application is actively executing (not just waiting for user input).
enableOnlyWhenWaiting(JComponent) - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables the given component only when the application is ready and waiting for user input.
enterNotRunningMode() - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables and disables GUI components as necessary when an application is not running.
enterNotRunningMode() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Enables and disables GUI components as necessary when an application is not running.
enterRunningMode() - Method in class edu.kzoo.grid.gui.GridAppFrame
Enables and disables GUI components as necessary while the application is running.
equals(Object) - Method in class edu.kzoo.grid.Direction
Indicates whether some other Direction object is "equal to" this one.
equals(Object) - Method in class edu.kzoo.grid.Location
Indicates whether some other Location object is "equal to" this one.
extraHeight() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
extraWidth() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 

F

FileMenuActionHandler - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The FileMenuActionHandler class implements the methods used by the File menu defined in GridAppFrame.
FileMenuActionHandler(GridAppFrame, GridDataFileHandler) - Constructor for class edu.kzoo.grid.gui.FileMenuActionHandler
Creates a new file menu action handler tied to the specified frame.
fillBackground(Graphics2D, Color) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Fills the grid background with the specified color.
fillPalette(JToolBar) - Method in class edu.kzoo.grid.gui.GridEditor
Puts tools for choosing grid object attributes in the editing palette, in particular a Type tool for choosing the type of grid object.
findDisplayFor(GridObject) - Static method in class edu.kzoo.grid.display.DisplayMap
Finds a display class that knows how to display the given object.
FULL_CIRCLE - Static variable in class edu.kzoo.grid.Direction
Number of degrees in compass (will not be tested on the Advanced Placement exam).
FUSCHIA - Static variable in class edu.kzoo.util.NamedColor
 

G

GeneratedButtonList - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
A GeneratedButtonList object creates a group of control buttons based on the methods of another class.
GeneratedButtonList(GridAppFrame, Object, boolean) - Constructor for class edu.kzoo.grid.gui.GeneratedButtonList
Constructs a list of control buttons based on methods associated with the given target object.
GeneratedButtonList(GridAppFrame, Object, boolean, boolean) - Constructor for class edu.kzoo.grid.gui.GeneratedButtonList
Constructs a list of control buttons based on methods associated with the given target object.
GeneratedButtonList(GridAppFrame, Object, Object[], boolean) - Constructor for class edu.kzoo.grid.gui.GeneratedButtonList
Constructs a list of control buttons based on methods associated with the given target object.
GeneratedButtonList(GridAppFrame, Object, Object[], boolean, boolean) - Constructor for class edu.kzoo.grid.gui.GeneratedButtonList
Constructs a list of control buttons based on methods associated with the given target object.
GeneratedButtonList.GeneratedThreadedControlButton - Class in edu.kzoo.grid.gui
GeneratedThreadedControlButton objects represent buttons whose button action is to reflectively invoke the appropriate method in the target object.
GeneratedThreadedControlButton(GridAppFrame, String, boolean) - Constructor for class edu.kzoo.grid.gui.GeneratedButtonList.GeneratedThreadedControlButton
Constructs a button that will run in its own thread.
getAllColorNames() - Method in class edu.kzoo.util.NamedColor.ColorMap
Gets all of the color names in the map.
getAllColorNames() - Static method in class edu.kzoo.util.NamedColor
Gets the names of all the colors with name => color associations.
getAllNamedColors() - Method in class edu.kzoo.util.NamedColor.ColorMap
Gets all of the colors in the map (colors for which there are associated names.
getAllNamedColors() - Static method in class edu.kzoo.util.NamedColor
Gets all the colors with name => color associations.
getBoolean(String, boolean, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it.
getByte(String, byte, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid byte).
getByte(String, byte, byte, byte, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid byte in the range provided).
getChar(String, char, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid char).
getChoice(String) - Static method in class edu.kzoo.grid.gui.ColorChoiceDDMenu
Gets the color choice from STANDARD_CHOICES with the specified name.
getClarificationResponse(int) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Provides a follow-up prompt for number of steps if initial response failed validation, and gets result.
getColor() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorChoice
 
getController() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Returns the controller used to drive the application.
getControlPanel() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the control panel (null if this graphical user interface has no control panel).
getDefaultBoundedGridClass() - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Returns the class that serves as the default bounded grid class.
getDefaultDisplay() - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Returns a DefaultDisplay object.
getDefaultDisplay(Class) - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Returns a default display specific to the given class if there is one.
getDefaultDisplay(String) - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Returns a default display specific to the given class if there is one.
getDefaultUnboundedGridClass() - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Returns the class that serves as the default bounded grid class.
getDelay() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the current delay value from the speed slider or a previous call to setDelay; defaults to 0 if there is no speed slider included with this graphical user interface and if setDelay has never been called.
getDirection(Location, Location) - Method in class edu.kzoo.grid.Grid
Returns the direction from one location to another.
getDisplay() - Method in class edu.kzoo.grid.gui.GridAppFrame
Gets the grid display.
getDisplayClass(String, String) - Static method in class edu.kzoo.grid.display.DefaultDisplayFactory
Instantiates a display class named fullDisplayClassName, if such a class exists.
getDouble(String, double, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid double).
getDouble(String, double, double, double, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid double in the range provided).
getEnclosingViewport() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Gets our parent viewport, if we are in one.
getFileChooser() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Gets the file chooser dialog used previously (if any) or creates a new one using the createFileChooser method.
getFileHandler() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Gets the object that handles file i/o.
getFileHandler() - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Gets the object that handles file i/o.
getFileMenuActionHandler() - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Gets the action handler for the file menu.
getFloat(String, float, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid float).
getFloat(String, float, float, float, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid float in the range provided).
getGrid() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the grid at the center of this graphical user interface.
getGrid() - Method in class edu.kzoo.grid.gui.SteppedGridAppController
Gets the application's grid.
getGridCreationDialog() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Gets the dialog used previously (if any) for grid creation.
getGUI() - Method in class edu.kzoo.grid.gui.ControlButton
Returns the graphical user interface containing this button.
getIcon() - Method in class edu.kzoo.grid.display.ScaledImageDisplay
Returns the image to use for display purposes.
getIconHeight() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorIcon
 
getIconHeight() - Method in class edu.kzoo.grid.gui.GridEditor.GridObjectIcon
 
getIconWidth() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorIcon
 
getIconWidth() - Method in class edu.kzoo.grid.gui.GridEditor.GridObjectIcon
 
getInitialResponse(int) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Provides inital prompt for number of steps and gets result.
getInstance() - Static method in class edu.kzoo.util.RandNumGenerator
Returns a random number generator.
getInteger(String, int, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid integer).
getInteger(String, int, int, int, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid integer in the range provided).
getListCellRendererComponent(JList, Object, int, boolean, boolean) - Method in class edu.kzoo.grid.display.TextAndIconRenderer
Returns a component that can display the specified value.
getLong(String, long, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid long).
getLong(String, long, long, long, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid long in the range provided).
getMinimumSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns the minimum size of the display, for use by layout manager.
getMouseListenerForDisplay() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns a mouse adapter that responds to mouse clicks, presses, and releases over the grid display.
getMouseLocation(MouseEvent) - Method in class edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
Returns the Location in the grid corresponding to the location of the mouse event.
getName() - Method in class edu.kzoo.util.NamedColor
Gets the name associated with this color.
getNamedColor(String) - Method in class edu.kzoo.util.NamedColor.ColorMap
Gets the color associated with the specified name.
getNamedColor(String) - Static method in class edu.kzoo.util.NamedColor
Gets the color associated with the specified name, if there is one.
getNameFor(Color) - Method in class edu.kzoo.util.NamedColor.ColorMap
Gets the name associated with the specified color.
getNameFor(Color) - Static method in class edu.kzoo.util.NamedColor
Gets the name associated with the specified color, if there is one.
getNeighbor(Location, Direction) - Method in class edu.kzoo.grid.Grid
Returns the adjacent neighbor (whether valid or invalid) of a location in the specified direction.
getObjectClass() - Method in class edu.kzoo.grid.gui.GridEditor.GridObjectChoice
 
getPannableTipText() - Method in interface edu.kzoo.grid.display.PseudoInfiniteViewport.Pannable
 
getPannableTipText() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getParentFrame() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Gets the frame containing the file menu associated with this handler.
getParentFrame() - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Gets the frame containing the file menu associated with this handler.
getPreferredScrollableViewportSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getPreferredSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns the desired size of the display, for use by layout manager.
getRandomAlphaColor() - Static method in class edu.kzoo.util.NamedColor
Generates a pseudorandom named NamedColor value.
getRandomColor() - Static method in class edu.kzoo.util.NamedColor
Generates a pseudorandom opaque NamedColor value.
getRandomColor(int) - Static method in class edu.kzoo.util.NamedColor
Generates a pseudorandom NamedColor value with the specified transparency level.
getRandomNamedColor() - Method in class edu.kzoo.util.NamedColor.ColorMap
Gets a random NamedColor from the map.
getRandomNamedColor() - Static method in class edu.kzoo.util.NamedColor
Generates a pseudorandom opaque namedNamedColor value.
getRandomNamedColor(int) - Static method in class edu.kzoo.util.NamedColor
Generates a pseudorandom named NamedColor value with the specified transparency level.
getResponse(String, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Displays the appropriate JOptionPane and gets the result.
getRGBRepresentation() - Method in class edu.kzoo.util.NamedColor
Gets the component representation of the color (the value returned by the java.util.Color.toString method).
getScrollableBlockIncrement(Rectangle, int, int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getScrollableTracksViewportHeight() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getScrollableTracksViewportWidth() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getScrollableUnitIncrement(Rectangle, int, int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
getSelectedClass() - Method in class edu.kzoo.grid.gui.GridChoiceComboBox
Returns the class associated with the selected item in the combo box.
getShort(String, short, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid short).
getShort(String, short, short, short, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response, and validates it (the response must be a valid short in the range provided).
getSpeedSlider() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns the speed slider bar (null if no speed slider is included with this graphical user interface).
getString(String, String) - Static method in class edu.kzoo.util.ValidatedInputReader
Puts up a dialog box displaying the initialPrompt, waits for the user's response.
getText(GridObject) - Method in class edu.kzoo.grid.display.DefaultDisplay
Gets the text string to draw.
getText(GridObject) - Method in class edu.kzoo.grid.display.TextCellDisplay
Gets the text string to draw.
getText(GridObject) - Method in class edu.kzoo.grid.display.TextDisplay
Gets the text string to draw.
getTextColor(GridObject) - Method in class edu.kzoo.grid.display.TextCellDisplay
Gets the text color.
getTextColor(GridObject) - Method in class edu.kzoo.grid.display.TextDisplay
Gets the text color.
getToolTipText(MouseEvent) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Given a MouseEvent, determines what text to place in the floating tool tip when the the mouse hovers over this location.
getViewPosition() - Method in class edu.kzoo.grid.display.PseudoInfiniteViewport
Returns current view position (upper left).
getViewSize() - Method in class edu.kzoo.grid.display.PseudoInfiniteViewport
Returns current view size.
GRAY - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
GRAY - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
GREEN - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
GREEN - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
grid() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Gets the grid.
Grid - Class in edu.kzoo.grid
Grid Container Package:
A Grid is a two-dimensional, rectangular container data structure.
Grid(Grid.InternalRepresentation) - Constructor for class edu.kzoo.grid.Grid
Constructs a Grid object with the specified internal representation.
Grid(Grid.InternalRepresentation, boolean) - Constructor for class edu.kzoo.grid.Grid
Constructs a Grid object with the specified internal representation.
grid() - Method in class edu.kzoo.grid.GridObject
Returns the grid in which this grid object exists.
Grid.BoundedGridValidityChecker - Class in edu.kzoo.grid
A BoundedGridValidityChecker implements a strategy for determining the validity of a location in a bounded grid.
Grid.InternalRepresentation - Interface in edu.kzoo.grid
The InternalRepresentation interface specifies the methods that any internal representation of the Grid class must implement.
Grid.UnboundedGridValidityChecker - Class in edu.kzoo.grid
An UnboundedGridValidityChecker implements a strategy for determining the validity of a location in an unbounded grid.
Grid.ValidityChecker - Interface in edu.kzoo.grid
A ValidityChecker specifies a strategy for determining the validity of a location in a grid.
GridAppFrame - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The GridAppFrame class provides a window in which to display a grid and its contents.
GridAppFrame() - Constructor for class edu.kzoo.grid.gui.GridAppFrame
Constructs an empty GridAppFrame window object that will display a grid.
GridAppFrame.DisplayMouseListener - Class in edu.kzoo.grid.gui
Nested class that handles simple mouse presses over the grid display.
GridAppFrame.GUIExceptionHandler - Class in edu.kzoo.grid.gui
Nested class that is registered as the handler for exceptions on the Swing event thread.
GridBackgroundDisplay - Interface in edu.kzoo.grid.display
Grid Display Package:
The GridBackgroundDisplay interface specifies the method that must be provided by any class used to display a Grid background.
GridChangeListener - Interface in edu.kzoo.grid.gui
Grid GUI Support Package:
The GridChangeListener interface specifies the method used to notify GridChangeListener objects of changes to the grid.
GridChoiceComboBox - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
A GridChoiceComboBox is a dialog that allows the user to choose the type of grid to be created and, if appropriate, its dimensions.
GridChoiceComboBox() - Constructor for class edu.kzoo.grid.gui.GridChoiceComboBox
 
GridCreationDialog - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
A GridCreationDialog is a dialog that allows the user to construct a new grid, choosing its type (bounded or unbounded) and, if appropriate, its dimensions.
GridCreationDialog(JFrame, boolean) - Constructor for class edu.kzoo.grid.gui.GridCreationDialog
Creates a dialog that allows the user to choose the type of grid to create and/or its dimensions.
GridDataFileHandler - Interface in edu.kzoo.grid.gui
Grid GUI Support Package:
The GridDataFileHandler interface specifies methods for reading grid information from a file and writing it to a file.
GridDisplay - Interface in edu.kzoo.grid.display
Grid Display Package:
The GridDisplay interface specifies the methods that must be provided by any class used to display a Grid object and its contents.
GridEditor - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The GridEditor class provides a window in which to edit a grid.
GridEditor(GridAppFrame) - Constructor for class edu.kzoo.grid.gui.GridEditor
Constructs an empty GridEditor window to edit the grid in the specified frame.
GridEditor.GridObjectChoice - Class in edu.kzoo.grid.gui
Nested class used to hold the per-item information for the entries in the combo box of grid object choices.
GridEditor.GridObjectIcon - Class in edu.kzoo.grid.gui
Nested class used to draw the icons used for GridObject entries in the grid object combo box.
GridFileChooser - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
A GridFileChooser is a JFileChooser subclass that adds some specialized behavior for opening and saving grid data files.
GridFileChooser() - Constructor for class edu.kzoo.grid.gui.GridFileChooser
Creates a new GridFileChooser.
gridLinesAreVisible() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns true if the grid lines are visible, false otherwise.
gridLineWidth - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
GridObject - Class in edu.kzoo.grid
Grid Container Package:
A GridObject object is an object that can be contained in a grid.
GridObject() - Constructor for class edu.kzoo.grid.GridObject
Constructs an instance of a GridObject that is not yet in a grid.
GridObject(Grid, Location) - Constructor for class edu.kzoo.grid.GridObject
Constructs an instance of a GridObject and places it in the specified grid.
GridObjectChoice(Class) - Constructor for class edu.kzoo.grid.gui.GridEditor.GridObjectChoice
 
gridObjectClasses() - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Returns the set of grid object classes known to the factory.
GridObjectDisplay - Interface in edu.kzoo.grid.display
Grid Display Package:
The GridObjectDisplay interface contains the method needed to display an object in a grid.
GridObjectIcon(Class, int, int) - Constructor for class edu.kzoo.grid.gui.GridEditor.GridObjectIcon
 
GridObjectIcon(Class, Color, int, int) - Constructor for class edu.kzoo.grid.gui.GridEditor.GridObjectIcon
 
GridPkgFactory - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The GridPkgFactory class provides a set of static methods for constructing grids and the objects they contain, and for keeping track of what types of grids or grid objects are available to a specific application.
GridPkgFactory() - Constructor for class edu.kzoo.grid.gui.GridPkgFactory
 
GridPkgFactory.ClassCategory - Class in edu.kzoo.grid.gui
 
gui - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
GUIExceptionHandler() - Constructor for class edu.kzoo.grid.gui.GridAppFrame.GUIExceptionHandler
 

H

handle(Throwable) - Method in class edu.kzoo.grid.gui.GridAppFrame.GUIExceptionHandler
 
hasColorFor(String) - Static method in class edu.kzoo.util.NamedColor
Checks whether there is a color associated with the given name.
hasCorrectCtor(Class<?>, Class<?>, Class<?>[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Verifies that a class has the required constructor and is properly assignable.
hasFourArgCtor(Class<?>) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Reports wehther a given grid object class has an accessible four-arg constructor that takes Grid, Location, Direction, and Color.
hashCode() - Method in class edu.kzoo.grid.Direction
Generates a hash code for this direction (will not be tested on the Advanced Placement exam).
hashCode() - Method in class edu.kzoo.grid.Location
Generates a hash code for this location (will not be tested on the Advanced Placement exam).
hasNameFor(Color) - Static method in class edu.kzoo.util.NamedColor
Checks whether there is a name associated with the given color.
hasReachedStoppingState() - Method in class edu.kzoo.grid.gui.SteppedGridAppController
Determines whether a running application has reached a desired stopping state.

I

identifyButtonMethods() - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Identifies the target object's methods for which control buttons should be created.
imageLoadedOK() - Method in class edu.kzoo.grid.display.ScaledImageDisplay
Returns true if the image loaded OK; false otherwise.
includeControlComponent(JComponent, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes the specified control component in a list of control buttons.
includeControlComponent(JComponent, int, boolean) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes the specified control component in a list of control buttons.
includeControlComponents(ArrayList<? extends JComponent>, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes the control components in the given list in the control panel.
includeDiagonals - Variable in class edu.kzoo.grid.Grid
Instance variable indicating whether the set of neighbors around each cell in the grid should include the 4 cells on the diagonals as well as the 4 cells with shared sides.
includeMenu(JMenu) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes the specified menu.
includeMenu(JMenu, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes the specified menu.
includeOnButtonClickMethodsOnly - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
includeRunButton() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes the Run button in the control panel.
includeSetResetButton(String, int, boolean) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes a set/initialize/reset button with the specified label.
includeSetResetButton(String, int, boolean, boolean) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes a set/initialize/reset button with the specified label.
includeSpeedSlider() - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes a speed adjustment slider bar with default values.
includeSpeedSlider(int, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes a speed adjustment slider bar with the specified extreme values and an initial delay halfway between them.
includeSpeedSlider(int, int, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Includes a speed adjustment slider bar with the specified properties.
includeStepNTimesButton() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes the Step N Times button in the control panel.
includeStepOnceButton() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes the Step Once button in the control panel.
includeStopButton(boolean) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Includes the Stop button in the control panel.
inDegrees() - Method in class edu.kzoo.grid.Direction
Returns this direction value in degrees.
indexOf(Location) - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Get the index of the object at the specified location.
INDIGO - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
INDIGO - Static variable in class edu.kzoo.util.NamedColor
 
init() - Method in class edu.kzoo.grid.gui.SteppedGridAppController
Initializes or re-initializes the state of the grid application.
InitializationButton - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The InitializationButton class represents a button that initializes a grid, an application, or some other object.
InitializationButton(InitializationButton.Initializer) - Constructor for class edu.kzoo.grid.gui.nuggets.InitializationButton
Constructs a button labeled "Initialize" that will invoke the initialize method on the specified initializer.
InitializationButton(InitializationButton.Initializer, String) - Constructor for class edu.kzoo.grid.gui.nuggets.InitializationButton
Constructs a button that will invoke the initialize method on the specified initializer.
InitializationButton(InitializationButton.Initializer, String, GridAppFrame, boolean) - Constructor for class edu.kzoo.grid.gui.nuggets.InitializationButton
Constructs a button that will invoke the initialize method on the specified initializer.
InitializationButton.Initializer - Interface in edu.kzoo.grid.gui.nuggets
The Initializer interface specifies an initialize method.
initialize() - Method in interface edu.kzoo.grid.gui.nuggets.InitializationButton.Initializer
 
initialize() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Sets up (initializes) or resets the application.
innerCellSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns the size of each cell, not including the width of a grid line.
internalRep - Variable in class edu.kzoo.grid.Grid
Instance variable containing the internal representation of the grid, which could be implemented in a number of ways.
invokeAccessorMethod(GridObject, String) - Method in class edu.kzoo.grid.display.TextDisplay
Invokes the named method on the specified object.
invokeEditor() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Invokes the appropriate grid editor to edit the grid from the parent frame.
isEmpty(Location) - Method in class edu.kzoo.grid.Grid
Determines whether a specific location in this grid is empty.
isInAGrid() - Method in class edu.kzoo.grid.GridObject
Checks whether this object is in a grid.
isInRunningMode() - Method in class edu.kzoo.grid.gui.GridAppFrame
Returns true if the application is in "running mode" (executing the behavior associated with a control button, for example); returns false otherwise.
isOff() - Static method in class edu.kzoo.util.Debug
Checks whether debugging is off.
isOn() - Static method in class edu.kzoo.util.Debug
Checks whether debugging is on.
isPannableUnbounded() - Method in interface edu.kzoo.grid.display.PseudoInfiniteViewport.Pannable
 
isPannableUnbounded() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
isValid(Location) - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Verifies whether a location is valid in this grid.
isValid(Location) - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Verifies whether a location is valid in this grid.
isValid(Location) - Method in class edu.kzoo.grid.Grid.BoundedGridValidityChecker
Verifies whether a location is valid.
isValid(Location) - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Verifies whether a location is valid in this grid.
isValid(Location) - Method in class edu.kzoo.grid.Grid
Verifies whether a location is valid in this grid.
isValid(Location) - Method in class edu.kzoo.grid.Grid.UnboundedGridValidityChecker
Verifies whether a location is valid.
isValid(Location) - Method in interface edu.kzoo.grid.Grid.ValidityChecker
Verifies whether a location is valid.
isValidGridClass(Class<?>, Class<?>[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Verifies that a class has the required constructor and is properly assignable to Grid.
isValidGridObjectClass(Class<?>, Class<?>[]) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Verifies that a class has the required constructor and is properly assignable to GridObject.
itemNeedsDefinedGrid(JMenuItem) - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Adds the specified menu item to the list of ones that should only be enabled when a grid is defined in the graphical user interface.

L

LIGHT_GRAY - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
LILAC - Static variable in class edu.kzoo.util.NamedColor
 
location() - Method in class edu.kzoo.grid.GridObject
Gets this grid object's location.
Location - Class in edu.kzoo.grid
AP® Computer Science Marine Biology Simulation:
A Location object represents the row and column of a location in a two-dimensional grid.
Location(int, int) - Constructor for class edu.kzoo.grid.Location
Constructs a Location object.
LOCATION_TOOL_TIPS - Static variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
locationForPoint(Point) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Given a Point, determines which grid location (if any) is under the mouse.

M

MAGENTA - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
makeAboutMessage(String, String, String) - Static method in class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
 
makeControlPanel(String) - Method in class edu.kzoo.grid.gui.GridAppFrame
Creates a control panel that lays out control buttons starting from the top.
makeControlPanel(String) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Creates the control panel.
makeDimensionsDialog(JFrame) - Static method in class edu.kzoo.grid.gui.GridCreationDialog
Creates a dialog that creates a bounded grid object (using BoundedGrid or whatever has been defined as the default bounded grid in the GridPkgFactory) after prompting the user for its dimensions.
makeDisplayPanel() - Method in class edu.kzoo.grid.gui.GridAppFrame
Creates the panel for displaying a grid application.
makeEditingPalette() - Method in class edu.kzoo.grid.gui.GridEditor
Creates the editing palette.
makeFileMenu() - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Creates the File drop-down menu on the frame.
makeGridChoiceDialog(JFrame) - Static method in class edu.kzoo.grid.gui.GridCreationDialog
Creates a dialog that allows the user to choose the type of grid to create and, if appropriate, its dimensions.
makeGridLinesVisible(boolean) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Makes the gridlines visible or invisible, depending on the value of the visible parameter.
makeObject(Class, Grid, Location) - Method in class edu.kzoo.grid.gui.GridEditor
Constructs the specified type of object.
makeObject(Class, Grid, Location, Color) - Method in class edu.kzoo.grid.gui.GridEditor
Constructs the specified type of object.
makeOpenAccessory() - Method in class edu.kzoo.grid.gui.GridFileChooser
Builds the open accessory with combo boxes for choosing the bounded and unbounded grid classes.
makeSliderPanel() - Method in class edu.kzoo.grid.gui.GridAppFrame
Creates a speed slider for controling the speed of the animation.
makeToolTipsReportLocation() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Sets tool tips to provide information about the locations of cells in the grid.
makeToolTipsReportObject() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Sets tool tips to provide information about the contents of cells in the grid.
makeTypeChoiceComponent() - Method in class edu.kzoo.grid.gui.GridEditor
Makes the grid object type choice combo box.
MEDIUM_GREEN - Static variable in class edu.kzoo.util.NamedColor
 
meetsControlMethodCriteria(Method, Class) - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Returns true if the given method was declared in the specified class (not in one of its superclasses) and has the right return type and parameters to be turned into a control button; false otherwise.
meetsMethodNameFormatCriteria(String) - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Returns true if the given method was declared in the specified class (not in one of its superclasses) and has the right return type and parameters to be turned into a control button; false otherwise.
methNamePattern - Static variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
methNameRegExpr - Static variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
methodArguments - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
MIDNIGHT - Static variable in class edu.kzoo.util.NamedColor
Midnight blue
minCellSize - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
MinimalFileMenu - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The MinimalFileMenu class provides a file menu that initially has either no menu items or just a Quit option, depending on the constructor used.
MinimalFileMenu() - Constructor for class edu.kzoo.grid.gui.nuggets.MinimalFileMenu
Creates a minimal File menu containing only a Quit option.
MinimalFileMenu(boolean) - Constructor for class edu.kzoo.grid.gui.nuggets.MinimalFileMenu
Creates a File menu that may be empty or may include a Quit option.
MinimalFileMenu(String) - Constructor for class edu.kzoo.grid.gui.nuggets.MinimalFileMenu
Creates a minimal File menu with the specifed name containing only a Quit option.
MinimalFileMenu(String, boolean) - Constructor for class edu.kzoo.grid.gui.nuggets.MinimalFileMenu
Creates a File menu with the specifed name that may be empty or may include a Quit option.
minimumCellSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Gets the minimum cell size.
mouseClicked(MouseEvent) - Method in class edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
 
mousePressed(MouseEvent) - Method in class edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
 
mouseReleased(MouseEvent) - Method in class edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
 

N

NamedColor - Class in edu.kzoo.util
Kalamazoo College Utility Classes:
The edu.kzoo.util.NamedColor class extends the java.awt.Color class to associate names with colors and to provide static methods that generate random colors.
NamedColor(Color) - Constructor for class edu.kzoo.util.NamedColor
Creates a NamedColor version of the given Color object.
NamedColor(Color, String) - Constructor for class edu.kzoo.util.NamedColor
Creates a NamedColor version of the given Color object with the given name.
NamedColor(int, int, int) - Constructor for class edu.kzoo.util.NamedColor
Creates an opaque sRGB color with the specified red, green, and blue values in the range (0 - 255).
NamedColor(int, int, int, String) - Constructor for class edu.kzoo.util.NamedColor
Creates an opaque sRGB color with the specified red, green, and blue values in the range (0 - 255) and associated with the specified name.
NamedColor(int, int, int, int) - Constructor for class edu.kzoo.util.NamedColor
Creates an sRGB color with the specified red, green, blue, and alpha values in the range (0 - 255).
NamedColor(int, int, int, int, String) - Constructor for class edu.kzoo.util.NamedColor
Creates an sRGB color with the specified red, green, blue, and alpha values in the range (0 - 255) and associated with the given name.
NamedColor.ColorMap - Class in edu.kzoo.util
ColorMap is a protected static class that represents a mapping of colors to names and names to colors.
NEEDS_APP_RUNNING - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should be enabled when the application is actively executing (responding to another button, for example) and disabled whenever the application is waiting for user input, as for a stop button.
NEEDS_APP_WAITING - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should be enabled whenever the application is waiting for user input (regardless of whether the user interface's grid has been set) and disabled when the application is actively executing (responding to another button, for example).
NEEDS_GRID - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should be enabled if the grid associated with the component's user interface is not null.
NEEDS_GRID_AND_APP_RUNNING - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should be enabled when the grid has been set and the application is actively executing (responding to another button, for example).
NEEDS_GRID_AND_APP_WAITING - Static variable in class edu.kzoo.grid.gui.EnabledDisabledStates
Indicates that a component should be enabled whenever the grid has been set and the application is waiting for user input.
neighborsOf(Location) - Method in class edu.kzoo.grid.Grid
Returns the adjacent neighbors of a specified location.
NewBoundedGridButton - Class in edu.kzoo.grid.gui.nuggets
Grid GUI Nuggets Package (Handy Grid GUI Components):
The NewBoundedGridButton class represents a button that prompts the user for the dimensions of a new bounded grid and then constructs that grid.
NewBoundedGridButton(GridAppFrame) - Constructor for class edu.kzoo.grid.gui.nuggets.NewBoundedGridButton
Constructs a button labeled "Create New Grid" that will create a new bounded grid with dimensions specified by the user through a dialog box.
NewBoundedGridButton(GridAppFrame, String) - Constructor for class edu.kzoo.grid.gui.nuggets.NewBoundedGridButton
Constructs a button that will create a new bounded grid with dimensions specified by the user through a dialog box.
nextBoolean() - Method in class edu.kzoo.util.RandNumGenerator
Returns a pseudorandom, uniformly distributed boolean value from this random number generator's sequence.
nextDouble() - Method in class edu.kzoo.util.RandNumGenerator
Returns a pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
nextInt(int) - Method in class edu.kzoo.util.RandNumGenerator
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
NORTH - Static variable in class edu.kzoo.grid.Direction
 
NORTHEAST - Static variable in class edu.kzoo.grid.Direction
 
NORTHWEST - Static variable in class edu.kzoo.grid.Direction
 
notifyGridChangeListeners() - Method in class edu.kzoo.grid.gui.GridAppFrame
Notifies all registered model change listeners that the model has been replaced.
nSteps() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Advances the application multiple (N) steps (where N is provided by the user in a dialog box) in a separate thread.
numAdjacentNeighbors() - Method in class edu.kzoo.grid.Grid
Returns the number of adjacent neighbors around each cell.
numCols() - Method in class edu.kzoo.grid.ArrayListGrid.Bounded
Returns number of columns in this grid.
numCols() - Method in class edu.kzoo.grid.ArrayListGrid.Unbounded
Returns number of columns in this grid.
numCols() - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Returns number of columns in this grid.
numCols() - Method in class edu.kzoo.grid.BoundedGrid
Returns number of columns in this grid.
numCols - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
numCols() - Method in class edu.kzoo.grid.Grid
Returns number of columns in this grid.
numObjects() - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Returns the number of objects in this grid.
numObjects() - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Returns the number of objects in this grid.
numObjects() - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Returns the number of objects in this grid.
numObjects() - Method in class edu.kzoo.grid.Grid
Returns the number of objects in this grid.
numRows() - Method in class edu.kzoo.grid.ArrayListGrid.Bounded
Returns number of rows in this grid.
numRows() - Method in class edu.kzoo.grid.ArrayListGrid.Unbounded
Returns number of rows in this grid.
numRows() - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Returns number of rows in this grid.
numRows() - Method in class edu.kzoo.grid.BoundedGrid
Returns number of rows in this grid.
numRows - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
numRows() - Method in class edu.kzoo.grid.Grid
Returns number of rows in this grid.
numStepsSoFar - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 
numStepsToRun - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 

O

objComboBox - Variable in class edu.kzoo.grid.gui.GridEditor
 
OBJECT_STRING_TOOL_TIPS - Static variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
objectAt(Location) - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Returns the object at a specific location in this grid.
objectAt(Location) - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Returns the object at a specific location in this grid.
objectAt(Location) - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Returns the object at a specific location in this grid.
objectAt(Location) - Method in class edu.kzoo.grid.Grid
Returns the object at a specific location in this grid.
OCEAN_BLUE - Static variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
onClick() - Method in class edu.kzoo.grid.gui.ControlButton
Executes the action associated with this button in a separate thread.
onClick() - Method in class edu.kzoo.grid.gui.ThreadedControlButton
Executes the action associated with this button in a separate thread.
onMouseClickOverDisplay(Location) - Method in class edu.kzoo.grid.gui.GridAppFrame
Handles a mouse click over the grid display.
onMousePressOverDisplay(Location) - Method in class edu.kzoo.grid.gui.GridAppFrame
Handles a mouse press over the grid display.
onMousePressOverDisplay(Location) - Method in class edu.kzoo.grid.gui.GridEditor
Handles a mouse press over the grid display, editing the contents of the grid at the specified location.
onMouseReleaseOverDisplay(Location) - Method in class edu.kzoo.grid.gui.GridAppFrame
Handles a mouse release over the grid display.
openAccessory - Variable in class edu.kzoo.grid.gui.GridFileChooser
 
openFile() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Reads a new grid from a saved data file.
ORANGE - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
ORANGE - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
originCol - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
originRow - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
outerCellSize - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 

P

paintCenteredText(Graphics2D, String, float, float) - Method in class edu.kzoo.grid.display.TextDisplay
Paints a horizontally and vertically-centered text string.
paintComponent(Graphics) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Paints this component.
paintIcon(Component, Graphics, int, int) - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorIcon
 
paintIcon(Component, Graphics, int, int) - Method in class edu.kzoo.grid.gui.GridEditor.GridObjectIcon
 
panBy(int, int) - Method in interface edu.kzoo.grid.display.PseudoInfiniteViewport.Pannable
 
panBy(int, int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
parentFrame - Variable in class edu.kzoo.grid.gui.GridEditor
 
PictureBlock - Class in edu.kzoo.grid
Grid Container Package:
A PictureBlock object encapsulates a picture (an image read from a file) to be put in a cell in a grid.
PictureBlock(String, String) - Constructor for class edu.kzoo.grid.PictureBlock
Constructs a picture block encapsulating the image in the specified file.
PictureBlock(String, String, Grid, Location) - Constructor for class edu.kzoo.grid.PictureBlock
Constructs a picture block encapsulating the image in the specified file.
PictureBlockDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A PictureBlockDisplay object displays a PictureBlock object, or any object with a pictureIcon method, as a picture in a grid.
PictureBlockDisplay() - Constructor for class edu.kzoo.grid.display.PictureBlockDisplay
Constructs a display object that can display grid objects that have a pictureIcon method.
pictureIcon() - Method in class edu.kzoo.grid.PictureBlock
Gets picture associated with this picture block.
PINK - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
preferredVPSize - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
prefix - Static variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
print(String) - Static method in class edu.kzoo.util.Debug
Prints debugging message without appending a newline character at the end.
PRINT_NAME - Static variable in class edu.kzoo.util.NamedColor
Flag to specify behavior for the toString(int) method
PRINT_RGB - Static variable in class edu.kzoo.util.NamedColor
Flag to specify behavior for the toString(int) method
println(String) - Static method in class edu.kzoo.util.Debug
Prints debugging message, appending a newline character at the end.
PseudoInfiniteViewport - Class in edu.kzoo.grid.display
AP® Computer Science Marine Biology Simulation:
A PseudoInfiniteViewport is a JViewport subclass that translates scroll actions into pan actions across an unbounded view.
PseudoInfiniteViewport(JScrollPane) - Constructor for class edu.kzoo.grid.display.PseudoInfiniteViewport
Construct a new PseudoInfiniteViewport object for the given scrollpane.
PseudoInfiniteViewport.Pannable - Interface in edu.kzoo.grid.display
The Pannable interface contains those methods that the view in a PseudoInfiniteViewport needs to support to enable panning behavior along with scrolling.
PUMPKIN - Static variable in class edu.kzoo.util.NamedColor
Slightly less yellow than ORANGE
PURPLE - Static variable in class edu.kzoo.util.NamedColor
 

R

RandNumGenerator - Class in edu.kzoo.util
Kalamazoo College Utility Classes:
The RandNumGenerator class provides a singleton object for random number generation.
RANDOM - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
RANDOM_COLOR - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
Unique constant object representing a random color (to compare == to)
randomDirection() - Static method in class edu.kzoo.grid.Direction
Returns a random direction.
randomDirection() - Method in class edu.kzoo.grid.Grid
Generates a random direction.
reactToNewGrid(Grid) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
 
reactToNewGrid(Grid) - Method in interface edu.kzoo.grid.gui.GridChangeListener
Reacts to a change in grids being used.
reactToNewGrid(Grid) - Method in class edu.kzoo.grid.gui.nuggets.BasicGridFileMenu
Sets the enabled status of those GUI items that need a grid to be valid.
readGrid(File) - Method in interface edu.kzoo.grid.gui.GridDataFileHandler
Reads information about a grid from an initial configuration data file and creates the grid.
recalculateCellSize() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Calculates the cell size to use given the current viewable region and the number of rows and columns in the grid.
recenterOnOrigin() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Pans the display back to the origin, so that 0, 0 is at the the upper left of the visible viewport.
RED - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
RED - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
remove(GridObject) - Method in class edu.kzoo.grid.ArrayListGrid.ArrayListGridRep
Removes the object from this internal grid representation.
remove(GridObject) - Method in class edu.kzoo.grid.BoundedGrid.Array2DGridRep
Removes the object from this internal grid representation.
remove(GridObject) - Method in interface edu.kzoo.grid.Grid.InternalRepresentation
Removes the object from this environment.
remove(GridObject) - Method in class edu.kzoo.grid.Grid
Removes the specified object from this grid.
remove(Location) - Method in class edu.kzoo.grid.Grid
Removes whatever object is at the specified location in this grid.
removeAll() - Method in class edu.kzoo.grid.Grid
Removes all objects from this grid.
removeDecorator(DisplayDecorator) - Method in class edu.kzoo.grid.display.ScaledDisplay
Remove a Decorator from the display
removeFromGrid() - Method in class edu.kzoo.grid.GridObject
Removes this object from the grid in which it was located.
reportConstructionError(Class, Exception, String) - Method in class edu.kzoo.grid.gui.GridEditor
Reports an error from attempting to construct an object.
resetButtonLabel(String, String) - Method in class edu.kzoo.grid.gui.GeneratedButtonList
Resets the specified button label associated with a method in the target object.
resetDelay() - Method in class edu.kzoo.grid.gui.GridAppFrame
Resets the current delay value to the initial delay value and adjusts the speed slider, if there is one.
resetToolTips() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Resets tool tips to be enabled or disabled, as specified by the most recent call to the setToolTipsEnabled method.
restoreState() - Static method in class edu.kzoo.util.Debug
Restores the previous debugging state.
reverse() - Method in class edu.kzoo.grid.Direction
Returns the direction that is the reverse of this Direction object.
ROSE - Static variable in class edu.kzoo.util.NamedColor
Less salmon-colored than PINK
RotatedDecorator - Class in edu.kzoo.grid.display
Grid Display Package:
A RotatedDecorator will allow a display to change as the object it is associated with changes direction.
RotatedDecorator(Direction) - Constructor for class edu.kzoo.grid.display.RotatedDecorator
Construct a new RotatedDecorator that can be added to a ScaledDisplay.
roundedDir(int, Direction) - Method in class edu.kzoo.grid.Direction
Rounds this direction to the nearest "cardinal" direction (will not be tested on the Advanced Placement exam).
row() - Method in class edu.kzoo.grid.Location
Returns the row coordinate of this location.
rowToYCoord(int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns Y-coordinate of top of given row.
run() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Starts a timer to repeatedly step the application at the speed currently indicated by the speed slider.
runningNSteps - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 

S

saveFile() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Saves the grid from the parent frame to a data file.
ScaledDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
This abstract class provides common implementation code for drawing a GridObject object.
ScaledDisplay() - Constructor for class edu.kzoo.grid.display.ScaledDisplay
 
ScaledImageDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A ScaledImageDisplay uses an image read from a file to represent an object in a location in a grid.
ScaledImageDisplay() - Constructor for class edu.kzoo.grid.display.ScaledImageDisplay
Internal constructor that does not initialize the icon instance variable; subclasses must be sure to set the icon using the setIcon method (e.g., at the beginning of a redefined draw method).
ScaledImageDisplay(String) - Constructor for class edu.kzoo.grid.display.ScaledImageDisplay
Constructs an object that knows how to display a GridObject object as an image.
ScaledImageTintDecorator - Class in edu.kzoo.grid.display
Grid Display Package:
A tinting decorator for a ScaledImageDisplay.
ScaledImageTintDecorator() - Constructor for class edu.kzoo.grid.display.ScaledImageTintDecorator
 
ScrollableGridDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A ScrollableGridDisplay is a panel containing a scrollable graphical display of a grid.
ScrollableGridDisplay() - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int, int) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int, int, int) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(Color) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int, int, Color) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int, Color) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
ScrollableGridDisplay(int, int, int, Color) - Constructor for class edu.kzoo.grid.display.ScrollableGridDisplay
Constructs a new ScrollableGridDisplay object with no grid and an empty view.
selectedClassIsBounded() - Method in class edu.kzoo.grid.gui.GridChoiceComboBox
Returns true if the class associated with the selected item in the combo box is a bounded grid and false if it is an unbounded grid.
setBackgroundColor(Color) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Sets the background color for displaying the grid.
setBackgroundDisplay(GridBackgroundDisplay) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Sets the object used to draw the background.
setColor(Color) - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorChoice
 
setColor(Color) - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorIcon
 
setDefaultBoundedGridClass(Class<? extends Grid>) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Sets the class that serves as the default bounded grid class to the given parameter.
setDefaultUnboundedGridClass(Class<? extends Grid>) - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Sets the class that serves as the default bounded grid class to the given parameter.
setDelay(int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Sets the current delay value and adjusts the speed slider, if there is one.
setEnabledStatus(JComponent, int) - Method in class edu.kzoo.grid.gui.GridAppFrame
Specifies when a given component should be enabled or disabled.
setFrame(JFrame) - Method in class edu.kzoo.grid.gui.nuggets.BasicHelpMenu
Sets the frame to which this menu bar is attached.
setGrid(Grid) - Method in interface edu.kzoo.grid.display.GridDisplay
Sets the Grid being displayed.
setGrid(Grid) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Sets the Grid being displayed.
setGrid(Grid) - Method in class edu.kzoo.grid.gui.GridAppFrame
Sets the grid being displayed (and displays it without any pause).
setGrid(Grid) - Method in class edu.kzoo.grid.gui.SteppedGridAppController
Sets the application's grid.
setGrid(Grid) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Sets the Grid being displayed.
setIcon(ImageIcon) - Method in class edu.kzoo.grid.display.ScaledImageDisplay
Defines the image to use for display purposes.
setName(String) - Method in class edu.kzoo.util.NamedColor
Associates the given name with this color.
setNameFor(Color, String) - Static method in class edu.kzoo.util.NamedColor
Associates the given name with the given color.
setSeed(long) - Method in class edu.kzoo.util.RandNumGenerator
Sets the seed of this random number generator using a single long seed.
setToolTipsEnabled(boolean) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Enables/disables showing of tooltip giving information about the grid object beneath the mouse.
setViewPosition(Point) - Method in class edu.kzoo.grid.display.PseudoInfiniteViewport
Sets the view position (upper left) to a new point.
shouldStop() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Determines whether a running application has reached a desired stopping state.
showDialog() - Method in class edu.kzoo.grid.gui.GridCreationDialog
Shows the modal dialog that allows the user to create a new grid.
showDisplayAfterEachStep(boolean) - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Specifies whether or not to display the contents of the grid after each step.
showGrid() - Method in interface edu.kzoo.grid.display.GridDisplay
Shows the current state of the grid.
showGrid() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Shows the grid.
showGrid() - Method in class edu.kzoo.grid.gui.GridAppFrame
Shows the grid (and pauses if a delay has been set either by a speed slider bar or by a call to the setDelay method).
showGrid() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Shows the grid.
showOpenDialog(Component) - Method in class edu.kzoo.grid.gui.GridFileChooser
Brings up a modal file chooser dialog allowing the user to choose the grid file.
showOriginTip() - Method in class edu.kzoo.grid.display.PseudoInfiniteViewport
Shows a tool tip over the upper left corner of the viewport with the contents of the pannable view's pannable tip text (typically a string identifiying the corner point).
showSaveDialog(Component) - Method in class edu.kzoo.grid.gui.GridFileChooser
Brings up a modal file chooser dialog allowing the user to save to a grid file.
SOUTH - Static variable in class edu.kzoo.grid.Direction
 
SOUTHEAST - Static variable in class edu.kzoo.grid.Direction
 
SOUTHWEST - Static variable in class edu.kzoo.grid.Direction
 
STANDARD_CHOICES - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
step() - Method in class edu.kzoo.grid.gui.ActiveGridAppController
Advances the application one step by asking every object in the grid to act.
step() - Method in class edu.kzoo.grid.gui.SteppedGridAppController
Advances the application one step.
step() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Advances the application one step.
stepAndDisplay() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Advances the application one step and displays the grid if appropriate.
SteppedGridAppController - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
A SteppedGridAppController controls the running of a stepped grid application.
SteppedGridAppController() - Constructor for class edu.kzoo.grid.gui.SteppedGridAppController
 
SteppedGridAppFrame - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The SteppedGridAppFrame class provides a window in which to run and display a grid application controlled by the user via a combination of Step, NSteps, Run, and Stop buttons.
SteppedGridAppFrame(SteppedGridAppController, boolean) - Constructor for class edu.kzoo.grid.gui.SteppedGridAppFrame
Constructs an empty SteppedGridAppFrame window object that will display a grid controlled by a combination of Step, NSteps, Run, and Stop buttons.
stop() - Method in class edu.kzoo.grid.gui.SteppedGridAppFrame
Stops any existing timer currently stepping the application.
suffix - Static variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
supportsFileIO() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Indicates whether this action handler supports file i/o.
supportsGridEditing() - Method in class edu.kzoo.grid.gui.FileMenuActionHandler
Indicates whether this action handler supports grid editing.

T

targetMethods - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
targetObj - Variable in class edu.kzoo.grid.gui.GeneratedButtonList
 
temporarilyDisableToolTips() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Temporarily disables tool tips (for a stepped application that is in running mode, for example).
text() - Method in class edu.kzoo.grid.TextCell
Gets text in this text cell.
TextAndIconRenderer - Class in edu.kzoo.grid.display
Grid Display Package:
The TextAndIconRenderer class provides a renderer that paints both the text and the icon of a JLabel.
TextAndIconRenderer(JComboBox<? extends JLabel>) - Constructor for class edu.kzoo.grid.display.TextAndIconRenderer
Constructs a renderer that will operate on the specified combo box.
TextCell - Class in edu.kzoo.grid
Grid Container Package:
A TextCell object encapsulates text to go in a cell in a grid.
TextCell(String) - Constructor for class edu.kzoo.grid.TextCell
Constructs a text cell with the specified text and a default color of black.
TextCell(String, Color) - Constructor for class edu.kzoo.grid.TextCell
Constructs a text cell with the specified text and color.
TextCell(String, Grid, Location) - Constructor for class edu.kzoo.grid.TextCell
Constructs a text cell at a given location of a grid with the specified text and a default color of black.
TextCell(String, Color, Grid, Location) - Constructor for class edu.kzoo.grid.TextCell
Constructs a text cell at a given location of a grid with the specified text and color.
TextCellDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A TextCellDisplay object displays a TextCell object (or any object with text and color methods) in a grid.
TextCellDisplay() - Constructor for class edu.kzoo.grid.display.TextCellDisplay
 
TextDisplay - Class in edu.kzoo.grid.display
Grid Display Package:
A TextDisplay draws a centered text string in a grid cell.
TextDisplay() - Constructor for class edu.kzoo.grid.display.TextDisplay
 
theGrid - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
theGridObjectInvariantHolds() - Method in class edu.kzoo.grid.GridObject
Verifies that the object invariant holds.
ThreadedControlButton - Class in edu.kzoo.grid.gui
Grid GUI Support Package:
The ThreadedControlButton class represents a button whose button action runs in its own thread.
ThreadedControlButton(GridAppFrame, String, boolean) - Constructor for class edu.kzoo.grid.gui.ThreadedControlButton
Constructs a button that will run in its own thread.
timer - Variable in class edu.kzoo.grid.gui.SteppedGridAppFrame
 
tint(ScaledImageDisplay, GridObject, Component, Graphics2D) - Method in class edu.kzoo.grid.display.ScaledImageTintDecorator
Adjusts the graphics system to use an object's color to tint an image.
toLeft() - Method in class edu.kzoo.grid.Direction
Returns the direction that is a quarter turn to the left of this Direction object.
toLeft(int) - Method in class edu.kzoo.grid.Direction
Returns the direction that is deg degrees to the left of this Direction object.
toolTipsEnabled() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Indicates whether tool tips are currently enabled.
toolTipsEnabledFlag - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
toolTipsSetEnabledFlag - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
toolTipsSetToBeEnabled() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Indicates whether tool tips were set to be enabled.
toolTipsType - Variable in class edu.kzoo.grid.display.ScrollableGridDisplay
 
toRight() - Method in class edu.kzoo.grid.Direction
Returns the direction that is a quarter turn to the right of this Direction object.
toRight(int) - Method in class edu.kzoo.grid.Direction
Returns the direction that is deg degrees to the right of this Direction object.
toString() - Method in class edu.kzoo.grid.ColorBlock
Returns a string representation of the color.
toString() - Method in class edu.kzoo.grid.Direction
Represents this direction as a string.
toString() - Method in class edu.kzoo.grid.Grid
Creates a single string representing all the objects in this environment (not necessarily in any particular order).
toString() - Method in class edu.kzoo.grid.GridObject
Returns a string representation of this grid object.
toString() - Method in class edu.kzoo.grid.gui.ColorChoiceDDMenu.ColorChoice
 
toString() - Method in class edu.kzoo.grid.gui.GridEditor.GridObjectChoice
 
toString() - Method in class edu.kzoo.grid.Location
Represents this location as a string.
toString() - Method in class edu.kzoo.grid.PictureBlock
Returns the description of the picture provided to the constructor.
toString() - Method in class edu.kzoo.util.NamedColor
Returns a string representation of the color -- the name of the color if known, otherwise the standard representation as defined in java.awt.Color.toString.
toString(int) - Method in class edu.kzoo.util.NamedColor
Returns a string representation of the color.
turnOff() - Static method in class edu.kzoo.util.Debug
Turns debugging off.
turnOn() - Static method in class edu.kzoo.util.Debug
Turns debugging on.

U

Unbounded() - Constructor for class edu.kzoo.grid.ArrayListGrid.Unbounded
Constructs an empty ArrayListGrid.Unbounded object.
Unbounded(boolean) - Constructor for class edu.kzoo.grid.ArrayListGrid.Unbounded
Constructs an empty ArrayListGrid.Unbounded object.
UNBOUNDED - Static variable in class edu.kzoo.grid.Grid
A constant representing an unbounded (or infinite) number of rows or columns in a grid.
unboundedChooser - Variable in class edu.kzoo.grid.gui.GridFileChooser
 
unboundedClass() - Method in class edu.kzoo.grid.gui.GridFileChooser
Returns the unbounded grid class selected on the open accessory.
unboundedGridClasses() - Static method in class edu.kzoo.grid.gui.GridPkgFactory
Returns the set of unbounded grid classes known to the factory.
UnboundedGridValidityChecker() - Constructor for class edu.kzoo.grid.Grid.UnboundedGridValidityChecker
 
updateLocation(Location) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Updates the display of just a single location on the grid.

V

ValidatedInputReader - Class in edu.kzoo.util
Kalamazoo College Utility Classes:
This class provides numerous static methods that will put up a dialog box prompting the user for input and validate the responses.
ValidatedInputReader() - Constructor for class edu.kzoo.util.ValidatedInputReader
 
VIOLET - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
VIOLET - Static variable in class edu.kzoo.util.NamedColor
 

W

WEST - Static variable in class edu.kzoo.grid.Direction
 
WHITE - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
WHITE - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant
writeGrid(Grid, File) - Method in interface edu.kzoo.grid.gui.GridDataFileHandler
Writes information about a grid into a data file.

X

xCoordToCol(int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns column corresponding to given X-coordinate.

Y

yCoordToRow(int) - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Returns row corresponding to given Y-coordinate.
YELLOW - Static variable in class edu.kzoo.grid.gui.ColorChoiceDDMenu
 
YELLOW - Static variable in class edu.kzoo.util.NamedColor
NamedColor version of java.awt.Color constant

Z

zoomIn() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Zooms in the display by doubling the current cell size.
zoomOut() - Method in class edu.kzoo.grid.display.ScrollableGridDisplay
Zooms out the display by halving the current cell size.
A B C D E F G H I L M N O P R S T U V W X Y Z 
Skip navigation links