public interface LayoutTarget
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds(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.
|
Rectangle2D |
getViewport(Object composite)
Return the viewport of the given graph as a rectangle
in logical coordinates.
|
Object |
getVisualObject(Object object)
Return the visual object of the given graph object.
|
Iterator |
intersectingEdges(Rectangle2D r)
Return an iterator over nodes in the view which intersect
the given rectangle.
|
Iterator |
intersectingNodes(Rectangle2D r)
Return an iterator over edges in the view which intersect
the given rectangle.
|
boolean |
isEdgeVisible(Object edge)
Return whether or not the given edge is actually
visible in the view.
|
boolean |
isNodeVisible(Object node)
Return whether or not the given node is actually
visible in the view.
|
void |
route(Object edge)
Route absolutely the figure associated with the given edge in
the target's view.
|
void |
translate(Object node,
double dx,
double dy)
Translate the figure associated with the given node in the
target's view by the given delta.
|
Rectangle2D getBounds(Object node)
GraphModel getGraphModel()
Object getVisualObject(Object object)
Rectangle2D getViewport(Object composite)
boolean isNodeVisible(Object node)
boolean isEdgeVisible(Object edge)
Iterator intersectingNodes(Rectangle2D r)
Iterator intersectingEdges(Rectangle2D r)
void route(Object edge)
void translate(Object node, double dx, double dy)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.