|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.layout.IncrLayoutAdapter
public class IncrLayoutAdapter
An adapter to make global layouts incremental. This class just calls a global layout on every change to the graph.
Red |
Field Summary | |
---|---|
private GlobalLayout |
_layout
|
private LayoutTarget |
_target
|
Constructor Summary | |
---|---|
IncrLayoutAdapter(GlobalLayout global)
Construct a new adapter that uses the given global layout for every change in the graph, and operates within the context of the given layout target. |
Method Summary | |
---|---|
void |
edgeDrawn(java.lang.Object edge)
Called in response to the edge head being changed. |
void |
edgeRouted(java.lang.Object edge)
Called in response to the edge tail being changed. |
LayoutTarget |
getLayoutTarget()
Return the layout target. |
void |
layout(java.lang.Object composite)
Call the global layout on the graph. |
void |
nodeDrawn(java.lang.Object node)
Called in response to the given node being added. |
void |
nodeMoved(java.lang.Object node)
Called in response to the given node being moved. |
void |
setLayoutTarget(LayoutTarget target)
Set the layout target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LayoutTarget _target
private GlobalLayout _layout
Constructor Detail |
---|
public IncrLayoutAdapter(GlobalLayout global)
Method Detail |
---|
public void nodeDrawn(java.lang.Object node)
nodeDrawn
in interface IncrementalLayout
public void nodeMoved(java.lang.Object node)
nodeMoved
in interface IncrementalLayout
public void edgeDrawn(java.lang.Object edge)
edgeDrawn
in interface IncrementalLayout
public void edgeRouted(java.lang.Object edge)
edgeRouted
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |