|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Location | |
edu.kzoo.grid | |
edu.kzoo.grid.display | |
edu.kzoo.grid.gui |
Uses of Location in edu.kzoo.grid |
Methods in edu.kzoo.grid that return Location | |
Location |
GridObject.location()
Gets this grid object's location. |
Location |
Grid.getNeighbor(Location fromLoc,
Direction compassDir)
Returns the adjacent neighbor (whether valid or invalid) of a location in the specified direction. |
Methods in edu.kzoo.grid with parameters of type Location | |
protected void |
GridObject.addToGrid(Grid grid,
Location loc)
Adds this object to the specified grid at the specified location. |
protected void |
GridObject.changeLocation(Location newLoc)
Modifies this grid object's location and notifies the grid. |
boolean |
Grid.isValid(Location loc)
Verifies whether a location is valid in this grid. |
Direction |
Grid.getDirection(Location fromLoc,
Location toLoc)
Returns the direction from one location to another. |
Direction |
Grid.getDirection(Location fromLoc,
Location toLoc)
Returns the direction from one location to another. |
Location |
Grid.getNeighbor(Location fromLoc,
Direction compassDir)
Returns the adjacent neighbor (whether valid or invalid) of a location in the specified direction. |
java.util.ArrayList |
Grid.neighborsOf(Location ofLoc)
Returns the adjacent neighbors of a specified location. |
boolean |
Grid.isEmpty(Location loc)
Determines whether a specific location in this grid is empty. |
GridObject |
Grid.objectAt(Location loc)
Returns the object at a specific location in this grid. |
void |
Grid.add(GridObject obj,
Location loc)
Adds a new object to this grid at the specified location. |
void |
Grid.remove(Location loc)
Removes whatever object is at the specified location in this grid. |
boolean |
Grid.InternalRepresentation.isValid(Location loc)
Verifies whether a location is valid in this grid. |
GridObject |
Grid.InternalRepresentation.objectAt(Location loc)
Returns the object at a specific location in this grid. |
boolean |
Grid.ValidityChecker.isValid(Location loc)
Verifies whether a location is valid. |
boolean |
Grid.BoundedGridValidityChecker.isValid(Location loc)
Verifies whether a location is valid. |
boolean |
Grid.UnboundedGridValidityChecker.isValid(Location loc)
Verifies whether a location is valid. |
boolean |
BoundedGrid.Array2DGridRep.isValid(Location loc)
Verifies whether a location is valid in this grid. |
GridObject |
BoundedGrid.Array2DGridRep.objectAt(Location loc)
Returns the object at a specific location in this grid. |
boolean |
ArrayListGrid.ArrayListGridRep.isValid(Location loc)
Verifies whether a location is valid in this grid. |
GridObject |
ArrayListGrid.ArrayListGridRep.objectAt(Location loc)
Returns the object at a specific location in this grid. |
protected int |
ArrayListGrid.ArrayListGridRep.indexOf(Location loc)
Get the index of the object at the specified location. |
Constructors in edu.kzoo.grid with parameters of type Location | |
TextCell(java.lang.String text,
Grid grid,
Location loc)
Constructs a text cell at a given location of a grid with the specified text and a default color of black. |
|
TextCell(java.lang.String text,
java.awt.Color textColor,
Grid grid,
Location loc)
Constructs a text cell at a given location of a grid with the specified text and color. |
|
PictureBlock(java.lang.String imageFilename,
java.lang.String description,
Grid grid,
Location loc)
Constructs a picture block encapsulating the image in the specified file. |
|
GridObject(Grid grid,
Location loc)
Constructs an instance of a GridObject and places it in the specified grid. |
|
ColorBlock(java.awt.Color colorValue,
Grid grid,
Location loc)
Constructs a color block with the specified color. |
Uses of Location in edu.kzoo.grid.display |
Methods in edu.kzoo.grid.display that return Location | |
Location |
ScrollableGridDisplay.locationForPoint(java.awt.Point p)
Given a Point, determines which grid location (if any) is under the mouse. |
Methods in edu.kzoo.grid.display with parameters of type Location | |
void |
ScrollableGridDisplay.updateLocation(Location loc)
Updates the display of just a single location on the grid. |
Uses of Location in edu.kzoo.grid.gui |
Methods in edu.kzoo.grid.gui that return Location | |
Location |
GridAppFrame.DisplayMouseListener.getMouseLocation(java.awt.event.MouseEvent evt)
Returns the Location in the grid corresponding to the location of the mouse event. |
Methods in edu.kzoo.grid.gui with parameters of type Location | |
static java.lang.Object |
GridPkgFactory.constructGridObject(java.lang.Class cls,
Grid grid,
Location loc)
Creates an instance of the given grid object class using a two-argument constructor that takes a grid and a location. |
static java.lang.Object |
GridPkgFactory.constructGridObject(java.lang.Class cls,
Grid grid,
Location loc,
Direction dir)
Creates an instance of the given grid object class using a three-argument constructor that takes a grid, a location, and a direction. |
static java.lang.Object |
GridPkgFactory.constructGridObject(java.lang.Class cls,
Grid grid,
Location loc,
Direction dir,
java.awt.Color color)
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. |
protected void |
GridEditor.onMousePressOverDisplay(Location loc)
Handles a mouse press over the grid display, editing the contents of the grid at the specified location. |
protected void |
GridEditor.makeObject(java.lang.Class cls,
Grid grid,
Location loc)
Constructs the specified type of object. |
protected void |
GridEditor.makeObject(java.lang.Class cls,
Grid grid,
Location loc,
java.awt.Color color)
Constructs the specified type of object. |
protected void |
GridAppFrame.onMousePressOverDisplay(Location loc)
Handles a mouse press over the grid display. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |