diva.graph
Class GraphPane

java.lang.Object
  extended bydiva.canvas.CanvasPane
      extended bydiva.canvas.GraphicsPane
          extended bydiva.graph.GraphPane
All Implemented Interfaces:
CanvasComponent, EventAcceptor
Direct Known Subclasses:
BubblePane

public class GraphPane
extends GraphicsPane

The display part of the JGraph user-level widget.

Version:
$Id: GraphPane.java,v 1.7 2004/04/13 22:14:19 cxh Exp $
Author:
Michael Shilman
See Also:
JGraph
Accepted Rating:
Red

Field Summary
 
Fields inherited from class diva.canvas.GraphicsPane
_backgroundEventLayer, _backgroundLayer, _foregroundEventLayer, _foregroundLayer, _layers, _overlayLayer
 
Constructor Summary
GraphPane(GraphController controller, GraphModel model)
          Create a new graph pane with the given controller and model.
GraphPane(GraphModel model)
          Create a new graph pane with a view on the given model.
 
Method Summary
 GraphController getGraphController()
          Get the graph controller
 GraphModel getGraphModel()
          Return the graph being viewed.
 
Methods inherited from class diva.canvas.GraphicsPane
_rebuildLayerArray, getBackgroundEventLayer, getBackgroundLayer, getForegroundEventLayer, getForegroundLayer, getOverlayLayer, layersFromBack, layersFromFront, setBackgroundEventLayer, setBackgroundLayer, setForegroundEventLayer, setForegroundLayer, setOverlayLayer
 
Methods inherited from class diva.canvas.CanvasPane
_initNewLayer, _nullifyLayer, dispatchEvent, getCanvas, getParent, getSize, getToolTipText, getTransformContext, isAntialiasing, isEnabled, layers, paint, paint, processLayerEvent, repaint, repaint, scale, setAntialiasing, setCanvas, setEnabled, setParent, setSize, setSize, setTransform, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphPane

public GraphPane(GraphModel model)
Create a new graph pane with a view on the given model.


GraphPane

public GraphPane(GraphController controller,
                 GraphModel model)
Create a new graph pane with the given controller and model.

Method Detail

getGraphController

public GraphController getGraphController()
Get the graph controller


getGraphModel

public GraphModel getGraphModel()
Return the graph being viewed.