public class RandomIncrLayout extends java.lang.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(java.lang.Object edge)
Called in response to the given edge being drawn.
|
void |
edgeRouted(java.lang.Object edge)
Called in response to the connector representing the given edge being
rereouted.
|
LayoutTarget |
getLayoutTarget()
Return the layout target.
|
void |
layout(java.lang.Object composite)
Layout the graph model in the viewport
specified by the layout target environment.
|
void |
nodeDrawn(java.lang.Object node)
Lay out the given node randomly, trying not
to overlap it with existing nodes.
|
void |
nodeMoved(java.lang.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(java.lang.Object edge)
edgeDrawn
in interface IncrementalLayout
public void edgeRouted(java.lang.Object edge)
edgeRouted
in interface IncrementalLayout
public void nodeDrawn(java.lang.Object node)
nodeDrawn
in interface IncrementalLayout
public void nodeMoved(java.lang.Object node)
nodeMoved
in interface IncrementalLayout
public LayoutTarget getLayoutTarget()
getLayoutTarget
in interface GlobalLayout
public void setLayoutTarget(LayoutTarget target)
setLayoutTarget
in interface GlobalLayout
public void layout(java.lang.Object composite)
layout
in interface GlobalLayout