public interface ProjectedGrid
Grid
Modifier and Type | Method and Description |
---|---|
void |
addProjectedGridListener(ProjectedGridListener listener)
Adds a listener to be notified of projected grid events.
|
boolean |
addProjection(GridProjection projection)
Adds a new grid projection.
|
java.util.Collection<GridProjection> |
getProjections()
Gets a collection of grid projections or empty collection of there
are no projections defined.
|
boolean |
removeProjection(GridProjection projection)
Removes a grid projection.
|
boolean addProjection(GridProjection projection)
If a projected grid refuses to add a particular grid projection for any reason other than that it already contains the grid projection, it must throw an exception (rather than returning false). This preserves the invariant that a projected grid always contains the specified grid projection after this call returns.
projection
- the grid projectionboolean removeProjection(GridProjection projection)
Removes a single instance of the specified grid projection from this projected grid, if it is present.
projection
- the grid projectionjava.util.Collection<GridProjection> getProjections()
void addProjectedGridListener(ProjectedGridListener listener)
listener
- the projected grid listener