public interface IGridManager
An interface for managing Components on a grid.
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component,
GridLocation location)
Adds a Component and its GridLocation to this GridManager.
|
java.lang.String |
getComponentName(GridLocation location)
Returns the Component at the provided GridLocation or null if one does
not exist at the provided location.
|
void |
removeComponent(Component component)
Removes the provided Component from this GridManager.
|
void |
removeComponent(GridLocation location)
Removes the Component at the provided GridLocation from this GridManager.
|
java.lang.String getComponentName(GridLocation location)
Returns the Component at the provided GridLocation or null if one does not exist at the provided location.
location
- A GridLocation.
A Component object to return.
void addComponent(Component component, GridLocation location)
Adds a Component and its GridLocation to this GridManager. If a Component already exists at that location, then this operation does nothing.
component
- A Component object to add.
location
- A GridLocation.
void removeComponent(GridLocation location)
Removes the Component at the provided GridLocation from this GridManager.
location
- A GridLocation.
void removeComponent(Component component)
Removes the provided Component from this GridManager.
component
- A Component object to remove.