public class RandomIncrLayout extends Object implements IncrementalLayout
| Constructor and Description |
|---|
RandomIncrLayout(LayoutTarget target)
Construct a random layout that lays out in
the context of the given layout target.
|
| Modifier and Type | Method and Description |
|---|---|
void |
edgeDrawn(Object edge)
Called in response to the given edge being drawn.
|
void |
edgeRouted(Object edge)
Called in response to the connector representing the given edge being
rereouted.
|
LayoutTarget |
getLayoutTarget()
Return the layout target.
|
void |
layout(Object composite)
Layout the graph model in the viewport
specified by the layout target environment.
|
void |
nodeDrawn(Object node)
Lay out the given node randomly, trying not
to overlap it with existing nodes.
|
void |
nodeMoved(Object node)
Called in response to the figure representing the
given node being moved.
|
void |
setLayoutTarget(LayoutTarget target)
Set the layout target.
|
public RandomIncrLayout(LayoutTarget target)
public void edgeDrawn(Object edge)
edgeDrawn in interface IncrementalLayoutpublic void edgeRouted(Object edge)
edgeRouted in interface IncrementalLayoutpublic void nodeDrawn(Object node)
nodeDrawn in interface IncrementalLayoutpublic void nodeMoved(Object node)
nodeMoved in interface IncrementalLayoutpublic LayoutTarget getLayoutTarget()
getLayoutTarget in interface GlobalLayoutpublic void setLayoutTarget(LayoutTarget target)
setLayoutTarget in interface GlobalLayoutpublic void layout(Object composite)
layout in interface GlobalLayoutCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.