public class BasicLayoutTarget extends Object implements LayoutTarget
| Constructor and Description |
|---|
BasicLayoutTarget(GraphController controller)
Construce a new layout target that operates
in the given pane.
|
| 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.
|
GraphController |
getController()
Return the graph controller.
|
protected GraphicsPane |
getGraphicsPane()
Return the pane of this display.
|
GraphModel |
getGraphModel()
Return the graph model that we are operating on.
|
double |
getLayoutPercentage()
Return the percentage of the pane that is used for layout.
|
protected Object |
getRootGraph()
Return the root graph of this display.
|
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 the node or edge figures which
intersect the given rectangle.
|
Iterator |
intersectingNodes(Rectangle2D r)
Return an iterator over the nodes which intersect the given
rectangle in the top-level graph.
|
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 |
setLayoutPercentage(double d)
Set the percentage of the pane that should be used for layout.
|
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.
|
public BasicLayoutTarget(GraphController controller)
public Rectangle2D getBounds(Object node)
getBounds in interface LayoutTargetpublic GraphController getController()
public GraphModel getGraphModel()
getGraphModel in interface LayoutTargetpublic double getLayoutPercentage()
setLayoutPercentage(double)protected GraphicsPane getGraphicsPane()
protected Object getRootGraph()
public Rectangle2D getViewport(Object composite)
getViewport in interface LayoutTargetpublic Object getVisualObject(Object object)
getVisualObject in interface LayoutTargetpublic boolean isNodeVisible(Object node)
isNodeVisible in interface LayoutTargetpublic boolean isEdgeVisible(Object edge)
isEdgeVisible in interface LayoutTargetpublic Iterator intersectingNodes(Rectangle2D r)
intersectingNodes in interface LayoutTargetpublic Iterator intersectingEdges(Rectangle2D r)
intersectingEdges in interface LayoutTargetpublic void route(Object edge)
route in interface LayoutTargetpublic void setLayoutPercentage(double d)
#getVieport(Graph)public void translate(Object node, double dx, double dy)
translate in interface LayoutTargetCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.