public interface LayoutTarget
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds(java.lang.Object node)
Return the bounds of the figure associated with the given node
in the target's view.
|
GraphModel |
getGraphModel()
Return the graph model that provides a traversal
interface to the graph I'm trying to layout.
|
java.awt.geom.Rectangle2D |
getViewport(java.lang.Object composite)
Return the viewport of the given graph as a rectangle
in logical coordinates.
|
java.lang.Object |
getVisualObject(java.lang.Object object)
Return the visual object of the given graph object.
|
java.util.Iterator |
intersectingEdges(java.awt.geom.Rectangle2D r)
Return an iterator over nodes in the view which intersect
the given rectangle.
|
java.util.Iterator |
intersectingNodes(java.awt.geom.Rectangle2D r)
Return an iterator over edges in the view which intersect
the given rectangle.
|
boolean |
isEdgeVisible(java.lang.Object edge)
Return whether or not the given edge is actually
visible in the view.
|
boolean |
isNodeVisible(java.lang.Object node)
Return whether or not the given node is actually
visible in the view.
|
void |
route(java.lang.Object edge)
Route absolutely the figure associated with the given edge in
the target's view.
|
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.
|
java.awt.geom.Rectangle2D getBounds(java.lang.Object node)
GraphModel getGraphModel()
java.lang.Object getVisualObject(java.lang.Object object)
java.awt.geom.Rectangle2D getViewport(java.lang.Object composite)
boolean isNodeVisible(java.lang.Object node)
boolean isEdgeVisible(java.lang.Object edge)
java.util.Iterator intersectingNodes(java.awt.geom.Rectangle2D r)
java.util.Iterator intersectingEdges(java.awt.geom.Rectangle2D r)
void route(java.lang.Object edge)
void translate(java.lang.Object node, double dx, double dy)