|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Displayable
Interface for objects that can be displayed on a DisplaySurface. DisplaySurface calls the drawDisplay method to draw the Displayable object. Consequently, a user should never need to call the drawDisplay method. The Display* classes implement this interface.
| Field Summary | |
|---|---|
static int |
TOGGLE_LINKS
|
static int |
TOGGLE_NODES
|
static int |
TOGGLE_UPDATE_LAYOUT
|
static int |
TOGGLE_VIEW
|
static int |
TOGGLE_WRAP
|
| Method Summary | |
|---|---|
void |
drawDisplay(SimGraphics g)
Draws whatever implements this interface on the SimGraphics object |
java.util.ArrayList |
getDisplayableInfo()
Returns an ArrayList of DisplayInfo objects used by a DisplaySurface to create the View menu for that displayable |
java.awt.Dimension |
getSize()
Gets the size of the display. |
void |
viewEventPerformed(ViewEvent evt)
Invoked when a display event occurs, through the view menu of a display surface for example. |
| Field Detail |
|---|
static final int TOGGLE_VIEW
static final int TOGGLE_NODES
static final int TOGGLE_LINKS
static final int TOGGLE_WRAP
static final int TOGGLE_UPDATE_LAYOUT
| Method Detail |
|---|
void drawDisplay(SimGraphics g)
java.util.ArrayList getDisplayableInfo()
DisplayInfovoid viewEventPerformed(ViewEvent evt)
java.awt.Dimension getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||