public interface IGridManager
Modifier and Type | Method and Description |
---|---|
boolean |
addComponent(java.lang.String name,
int location)
Adds a Component to the specified location in the
grid.
|
java.util.List<java.lang.Integer> |
getComponentLocations(java.lang.String name)
Gets all the locations occupied by a Component in
the grid.
|
java.lang.String |
getComponentName(int location)
Gets the name of the Component in the specified
grid location.
|
boolean |
removeComponent(int location)
Dissociates the Component at a specified location
with that location.
|
boolean |
removeComponent(java.lang.String name)
Dissociates the Component with all locations that
it currently occupies.
|
java.lang.String getComponentName(int location)
location
- The index of the location in the grid being managed.null
if no name is found.java.util.List<java.lang.Integer> getComponentLocations(java.lang.String name)
name
- The name of the Component to search for.boolean addComponent(java.lang.String name, int location)
name
- The name of the Component to add to the grid.location
- The location index in which to put the Component.boolean removeComponent(int location)
location
- The index of the Component to remove.boolean removeComponent(java.lang.String name)
name
- The name of the Component to remove from the GridManager.