|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.gridworld.gui.DisplayMap
public class DisplayMap
DisplayMap is a collection that maps grid occupant
classes to objects that know how to display them.
This code is not tested on the AP CS A and AB exams. It contains GUI
implementation details that are not intended to be understood by AP CS
students.
| Constructor Summary | |
|---|---|
DisplayMap()
|
|
| Method Summary | |
|---|---|
Display |
findDisplayFor(java.lang.Class cl)
Finds a display class that knows how to display the given object. |
javax.swing.Icon |
getIcon(java.lang.Class cl,
int w,
int h)
Gets an icon to display a class in a menu |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayMap()
| Method Detail |
|---|
public Display findDisplayFor(java.lang.Class cl)
cl - the class to display
public javax.swing.Icon getIcon(java.lang.Class cl,
int w,
int h)
cl - the classw - the icon widthh - the icon height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||