uchicago.src.sim.gui
Interface Displayable

All Known Implementing Classes:
Display, Display2D, Network2DDisplay, VectorDisplay

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.

Version:
$Revision: 1.4 $ $Date: 2004/11/03 19:50:59 $
Author:
Nick Collier

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

TOGGLE_VIEW

public static final int TOGGLE_VIEW
See Also:
Constant Field Values

TOGGLE_NODES

public static final int TOGGLE_NODES
See Also:
Constant Field Values

TOGGLE_LINKS

public static final int TOGGLE_LINKS
See Also:
Constant Field Values

TOGGLE_WRAP

public static final int TOGGLE_WRAP
See Also:
Constant Field Values

TOGGLE_UPDATE_LAYOUT

public static final int TOGGLE_UPDATE_LAYOUT
See Also:
Constant Field Values
Method Detail

drawDisplay

public void drawDisplay(SimGraphics g)
Draws whatever implements this interface on the SimGraphics object


getDisplayableInfo

public java.util.ArrayList getDisplayableInfo()
Returns an ArrayList of DisplayInfo objects used by a DisplaySurface to create the View menu for that displayable

See Also:
DisplayInfo

viewEventPerformed

public void viewEventPerformed(ViewEvent evt)
Invoked when a display event occurs, through the view menu of a display surface for example. Not used to do the actual drawing.


getSize

public java.awt.Dimension getSize()
Gets the size of the display.