|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.layout.ProxyIncrLayout
public class ProxyIncrLayout
A proxy layout which forwards all events to a given incremental layout delegate. This class implements the proxy design pattern, hence its name. It is a useful base class for building layouts that know how to do a certain specific task, but want to delegate work to a more general layout for the cases that it doesn't know how to deal with.
Red |
Field Summary | |
---|---|
private IncrementalLayout |
_delegate
The target incremental layout that this delegates to. |
Constructor Summary | |
---|---|
ProxyIncrLayout(IncrementalLayout delegate)
Construct the proxy with the given target. |
Method Summary | |
---|---|
void |
edgeDrawn(java.lang.Object edge)
Called in response to the given edge being given a figure. |
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)
Called in response to the given node being given a figure. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IncrementalLayout _delegate
Constructor Detail |
---|
public ProxyIncrLayout(IncrementalLayout delegate)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |