|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.lawrence.GridPane<E>
E - type of elements.public class GridPane<E>
View of a GridModel whose values are represented by images given by an ImageProvider
| Constructor Summary | |
|---|---|
GridPane(GridModel<? extends E> model,
ImageProvider<E> imageProvider,
int tileWidth,
int tileHeight)
Construct an object that control the graphical view of a GridModel. |
|
| Method Summary | |
|---|---|
void |
addCursorListener(CursorListener listener)
Register a CursorListener to be notified of user action |
void |
addInputListener(InputListener listener)
Register a InputListener to be notified of user action |
void |
displayMessage(String message)
Display a message and wait until the user validate the message box. |
CursorListener[] |
getCursorListeners()
Returns all registered cursor listeners. |
InputListener[] |
getInputListeners()
Returns all registered input listeners. |
Location |
pointerPosition()
|
void |
removeCursorListener(CursorListener listener)
Remove a InputListener from notification |
void |
removeInputListener(InputListener listener)
Remove a InputListener from notification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridPane(GridModel<? extends E> model,
ImageProvider<E> imageProvider,
int tileWidth,
int tileHeight)
model - the model to representimageProvider - an object that is able to provide an image
for each element of the model.tileWidth - the width for the tile representing a elementtileHeight - the width for the tile representing a element| Method Detail |
|---|
public void addInputListener(InputListener listener)
listener - the InputListener to registerpublic void removeInputListener(InputListener listener)
listener - the InputListener to removepublic InputListener[] getInputListeners()
public void addCursorListener(CursorListener listener)
listener - the InputListener to registerpublic void removeCursorListener(CursorListener listener)
listener - the InputListener to removepublic CursorListener[] getCursorListeners()
public Location pointerPosition()
public void displayMessage(String message)
message - the message to display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||