EDU.auburn.VGJ.algorithm
Interface GraphUpdate

All Known Subinterfaces:
ModelUpdate
All Known Implementing Classes:
GraphCanvas

public interface GraphUpdate

This interface represents an updatable graph display.

Here is the source.

Author:
Larry Barowski

Method Summary
 void center()
          Update the display and boundaries, and center the graph in the display window.
 java.awt.Frame getFrame()
          Get an application Frame from which to pop up windows.
 double getHSpacing()
           
 Node getSelectedNode()
          Get the index of the selected node.
 double getVSpacing()
           
 void scale(double scaleval)
          Set the scale value for display, and update the display. scaleval is interpreted as follows: screen_distance = physical_distance * scaleval.
 void update(boolean adjust_bounds)
          Update the display.
 DRect windowRect()
          Get the position and dimensions of the display window.
 

Method Detail

update

public void update(boolean adjust_bounds)
Update the display. If adjust_bounds is set, the boundaries are recomputed (basically, the controls get updated as well as the display, and this will be slow for large graphs).

scale

public void scale(double scaleval)
Set the scale value for display, and update the display. scaleval is interpreted as follows: screen_distance = physical_distance * scaleval.

center

public void center()
Update the display and boundaries, and center the graph in the display window.

windowRect

public DRect windowRect()
Get the position and dimensions of the display window.

getHSpacing

public double getHSpacing()

getVSpacing

public double getVSpacing()

getFrame

public java.awt.Frame getFrame()
Get an application Frame from which to pop up windows.

getSelectedNode

public Node getSelectedNode()
Get the index of the selected node. -1 is returned if no node is selected.