|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
Method Summary | |
void |
addModel(java.lang.Object model)
method to add the model to the world |
void |
clearBackground()
Method to clear the background |
java.awt.Graphics |
getGraphics()
Method that returns the graphics context for this model display |
int |
getHeight()
Method to get the height of the display |
int |
getWidth()
Method to get the width of the display |
void |
modelChanged()
method to notify the thing that displays that the model has changed |
void |
remove(java.lang.Object model)
Method to remove the model from the world |
Method Detail |
public void modelChanged()
public void addModel(java.lang.Object model)
model
- the model object to addpublic void remove(java.lang.Object model)
model
- the model object to removepublic java.awt.Graphics getGraphics()
public void clearBackground()
public int getWidth()
public int getHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |