|
Generic Environment GUI Class Library | |||||
PREV NEXT | FRAMES NO FRAMES |
ActiveEnvFrame
class provides a window in which
to run and display an environment, holding the display steady for
a length of time determined by a slider.BoundedEnv
class models a bounded, two-dimensional,
grid-like environment containing locatable objects.ColorBlock
object encapsulates a color for a colored
cell in an environment.ColorBlockDisplay
object displays a
ColorBlock
object in an environment.ColorChoiceDDMenu
class provides a
drop-down menu for choosing a color.startingColorChoice
is the selected one when the menu is created.
startingColorChoice
as the selected one when the menu is created.
other
for ordering.
CreateEnvDialog
is a dialog that allows the user to
construct a new environment, choosing its type (bounded or unbounded)
and, if appropriate, its dimensions.DefaultDisplay
draws a centered question-mark.Direction
class encapsulates the notion of a compass
direction such as North, East, South, West.Direction
object facing North.
Direction
object.
Direction
object.
DisplayMap
is a collection that maps environment
object classes to objects that know how to display them.EnvAppController
controls the running of an
environment application.EnvAppFrame
class provides a window in which
to display an environment.EnvChoiceComboBox
is a dialog that allows the user to
choose the type of environment to be created and, if appropriate, its
dimensions.EnvController
class implements the methods used by
the File menu defined in EnvApplFrame
.EnvDataFileHandler
interface specifies methods for
reading environment information from a file and writing it to a file.EnvDisplay
interface describes the methods needed
by all EnvDisplay
objects.EnvEditor
class provides a window in which
to edit an environment.EnvFileChooser
is a JFileChooser
subclass that adds
some specialized behavior for opening and saving environment
data files.EnvFrameWithSlider
class provides a window in which
to display an environment, holding the display steady for a length
of time determined by a slider.Environment
provides an interface for a two-dimensional,
grid-like environment containing locatable objects.Direction
object
is "equal to" this one.
Location
object is
"equal to" this one.
true
if the grid lines are visible,
false
otherwise.
Locatable
is an interface that guarantees that an object
knows its location and returns it when the location
method is called.LocatableDisplay
interface contains the
method needed to display an environment object.Location
object represents the row and column of a
location in a two-dimensional grid.Location
object.
BoundedEnv
object
after prompting the user for its dimensions.
visible
parameter.
MBSFactory
class provides a set of static methods
for constructing objects in the Marine Biology Simulation program,
such as fish and environments, as well as tracking the available
classes to use in constructing those objects.PseudoInfiniteViewport
is a
JViewport
subclass that
translates scroll actions into pan actions across an
unbounded view.RandNumGenerator
class provides a singleton
java.util.Random
object for random number generation.Direction
object.
RotatedImageDisplay
displays an object in an environment.RotatedTintedImageDisplay
displays an object as a tinted image
in an environment.ScaledImageDisplay
uses an image read from a file to
represent an object with a location in an environment.ScrollableEnvDisplay
is a panel containing a
scrollable graphical display of an environment.true
if the class associated with the
selected item in the combo box is a bounded environment and
false
if it is an unbounded environment.
SettableEnvDisplay
interface adds the
setEnv
method to the showEnv
method specified by EnvDisplay
.SquareEnvironment
is an abstract class that implements
only the navigational methods in the Environment
interface.SquareEnvironment
object in which cells
have four adjacent neighbors -- those with which they share sides.
SquareEnvironment
object in which cells
have four or eight adjacent neighbors, depending on the value
of the includeDiagonalNeighbors
parameter.
TextAndIconRenderer
class provides a
renderer that paints both the text and the icon of a
JLabel.TextCell
object encapsulates text to go in a
cell in an environment.TextCellDisplay
object displays a
TextCell
object in an environment.TintedImageDisplay
displays an object as a
tinted image in an environment.Direction
object.
deg
degrees
to the left of this Direction
object.
Direction
object.
deg
degrees
to the right of this Direction
object.
UnboundedEnv
class models an unbounded, two-dimensional,
grid-like environment containing locatable objects.
|
Generic Environment GUI Class Library | |||||
PREV NEXT | FRAMES NO FRAMES |