diva.graph
Class GraphPane

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

public class GraphPane
extends GraphicsPane

The display part of the JGraph user-level widget.

Version:
$Id: GraphPane.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman
See Also:
JGraph
Accepted Rating:
Red

Field Summary
private  GraphController _controller
          The controller
private  GraphModel _model
          The graph that is being displayed.
 
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
 

Field Detail

_controller

private GraphController _controller
The controller


_model

private GraphModel _model
The graph that is being displayed.

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.