Interface EDU.auburn.VGJ.algorithm.GraphUpdate
All Packages Class Hierarchy This Package Previous Next Index
Interface EDU.auburn.VGJ.algorithm.GraphUpdate
- public interface GraphUpdate
- extends Object
This interface represents an updatable graph display.
Here is the source.
-
center()
- Update the display and boundaries, and center the graph in the
display window.
-
getFrame()
- Get an application Frame from which to pop up windows.
-
getHSpacing()
-
-
getSelectedNode()
- Get the index of the selected node.
-
getVSpacing()
-
-
scale(double)
- Set the scale value for display, and update the display.
-
update(boolean)
- Update the display.
-
windowRect()
- Get the position and dimensions of the display window.
update
public abstract 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 abstract 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 abstract void center()
- Update the display and boundaries, and center the graph in the
display window.
windowRect
public abstract DRect windowRect()
- Get the position and dimensions of the display window.
getHSpacing
public abstract double getHSpacing()
getVSpacing
public abstract double getVSpacing()
getFrame
public abstract Frame getFrame()
- Get an application Frame from which to pop up windows.
getSelectedNode
public abstract Node getSelectedNode()
- Get the index of the selected node. -1 is returned if no node is selected.
All Packages Class Hierarchy This Package Previous Next Index