ptolemy.vergil.basic
Class BasicGraphFrame.PtolemyLayoutTarget

java.lang.Object
  extended by diva.graph.basic.BasicLayoutTarget
      extended by ptolemy.vergil.basic.BasicGraphFrame.PtolemyLayoutTarget
All Implemented Interfaces:
LayoutTarget
Enclosing class:
BasicGraphFrame

private class BasicGraphFrame.PtolemyLayoutTarget
extends BasicLayoutTarget

A layout target that translates locatable nodes.


Constructor Summary
BasicGraphFrame.PtolemyLayoutTarget(GraphController controller)
          Construct a new layout target that operates in the given pane.
 
Method Summary
 java.awt.geom.Rectangle2D getViewport(java.lang.Object composite)
          Return the viewport of the given graph as a rectangle in logical coordinates.
 void translate(java.lang.Object node, double dx, double dy)
          Translate the figure associated with the given node in the target's view by the given delta.
 
Methods inherited from class diva.graph.basic.BasicLayoutTarget
getBounds, getController, getGraphicsPane, getGraphModel, getLayoutPercentage, getRootGraph, getVisualObject, intersectingEdges, intersectingNodes, isEdgeVisible, isNodeVisible, route, setLayoutPercentage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphFrame.PtolemyLayoutTarget

public BasicGraphFrame.PtolemyLayoutTarget(GraphController controller)
Construct a new layout target that operates in the given pane.

Method Detail

getViewport

public java.awt.geom.Rectangle2D getViewport(java.lang.Object composite)
Return the viewport of the given graph as a rectangle in logical coordinates.

Specified by:
getViewport in interface LayoutTarget
Overrides:
getViewport in class BasicLayoutTarget

translate

public void translate(java.lang.Object node,
                      double dx,
                      double dy)
Translate the figure associated with the given node in the target's view by the given delta.

Specified by:
translate in interface LayoutTarget
Overrides:
translate in class BasicLayoutTarget