|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.gui.Display
public abstract class Display
Abstract class upon which custom displays can be built.
| Field Summary | |
|---|---|
protected int |
height
|
protected boolean |
view
|
protected int |
width
|
| Fields inherited from interface uchicago.src.sim.gui.Displayable |
|---|
TOGGLE_LINKS, TOGGLE_NODES, TOGGLE_UPDATE_LAYOUT, TOGGLE_VIEW, TOGGLE_WRAP |
| Constructor Summary | |
|---|---|
Display(int width,
int height)
Constructs a Display with the specified width and height. |
|
| Method Summary | |
|---|---|
abstract void |
drawDisplay(SimGraphics g)
Does the actual drawing using the SimGraphics parameter. |
java.util.ArrayList |
getDisplayableInfo()
Gets a list of the DisplayInfo object associated with this Display. |
java.awt.Dimension |
getSize()
Gets the size of this Display. |
void |
reSize(int width,
int height)
Resizes the display to this new pixel width and pixel height. |
void |
viewEventPerformed(ViewEvent evt)
Invoked when a viewEvent for this display is fired by the DisplaySurface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean view
protected int height
protected int width
| Constructor Detail |
|---|
public Display(int width,
int height)
width - the width of the displayheight - the height of the display| Method Detail |
|---|
public java.awt.Dimension getSize()
getSize in interface Displayablepublic abstract void drawDisplay(SimGraphics g)
drawDisplay in interface Displayableg - the graphics context with which to drawpublic java.util.ArrayList getDisplayableInfo()
getDisplayableInfo in interface DisplayableDisplayInfopublic void viewEventPerformed(ViewEvent evt)
viewEventPerformed in interface Displayable
public void reSize(int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||