|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.controller.LayoutController
com.tensegrity.graph.layout.controller.SwimlaneLayoutController
This class implements a layout controller for swimlane application.
| Field Summary |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Constructor Summary | |
SwimlaneLayoutController()
Constructor for for SwimlaneLayoutController. |
|
SwimlaneLayoutController(LayoutController layoutController,
VisualGraphObjectContainer graphobjectcontainer)
Copy-Constructor for for SwimlaneLayoutController. |
|
| Method Summary | |
boolean |
apply()
This method applies a layout on the visual nodes and edges of the associated VisualGraphObjectContainer which should, together with an appropriate
edge layout context and node layout context, be set in advance.
|
boolean |
applyDynamic()
This method causes the LayoutController to perform
a single dynamic layout. |
LayoutController |
deepCopy(VisualGraphObjectContainer visualgraphview)
Override this method with a meaningful deep-copy operation that returns a new independent layout-controller associated with the given VisualGraphObjectContainer. |
protected void |
init()
This method must be overwritten by derived LayoutControllers. |
void |
setVisualGraphObjectContainer(VisualGraphObjectContainer visualGraphObjectContainer)
Sets the VisualGraphObjectContainer that is to be associated.
|
static void |
verifySwimLaneStructure(VisualGraphObjectContainer visualgraphview)
Verifies the structure of the given VisualGraphObjectContainer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SwimlaneLayoutController()
SwimlaneLayoutController.
public SwimlaneLayoutController(LayoutController layoutController,
VisualGraphObjectContainer graphobjectcontainer)
SwimlaneLayoutController.
layoutController - the LayoutController instance to
copy values from.graphobjectcontainer - The VisualGraphObjectContainer this
instance is associated with.| Method Detail |
protected void init()
LayoutControllerLayout and
define the according layout-contexts.
init in class LayoutControllerpublic LayoutController deepCopy(VisualGraphObjectContainer visualgraphview)
LayoutControllerVisualGraphObjectContainer.
deepCopy in class LayoutControllervisualgraphview - the VisualGraphObjectContainer
the copy is to be associated with.
public void setVisualGraphObjectContainer(VisualGraphObjectContainer visualGraphObjectContainer)
LayoutControllerVisualGraphObjectContainer that is to be associated.
VisualGraphView.setLayoutController(LayoutController)
was used since the VisualGraphView calls this method internally.
setVisualGraphObjectContainer in class LayoutControllervisualGraphObjectContainer - the associated VisualGraphObjectContainer.public boolean apply()
LayoutControllerVisualGraphObjectContainer which should, together with an appropriate
edge layout context and node layout context, be set in advance.
You can set the layout contexts for the main graph and nested
subgraphs by invoking methods
Layoutable.setNodeLayoutContext(String)
and Layoutable.setEdgeLayoutContext(String) or
the helper method pair LayoutController.setNodeLayoutContext(String)
and LayoutController.setEdgeLayoutContext(String).
This method processes subgraphs recursively in a post-order tree traversal.
Please note that for a recursive layout, the algorithm is applied to all
subgraphs before their parents.
The methods LayoutController.onBeginVisualSubgraphLayout(VisualSubgraph)
and LayoutController.onLayoutSubgraph(VisualSubgraph) will be
triggered for each subgraph.
The methods LayoutController.onBeginLayout() and LayoutController.onEndLayout()
will be triggered before and after the main graph is arranged respectively.
LayoutController.getLayoutDomain()
for more information.
apply in class LayoutControllertrue if the function was successful;
otherwise false, in which case the method LayoutController.getErrorMessage()
could be used to obtain details about the error.LayoutController.setVisualGraphObjectContainer(VisualGraphObjectContainer),
LayoutController.setNodeLayoutContext(String),
LayoutController.setEdgeLayoutContext(String),
LayoutController.apply(List, String, String),
LayoutController.apply(String),
LayoutController.getLayoutDomain()public boolean applyDynamic()
LayoutControllerLayoutController to perform
a single dynamic layout. Usually this method is not invoked directly
by the client. Instead it is invoked by the framework internally
during user interaction.
applyDynamic in class LayoutControllertrue if the layout was successful,
otherwise false; in this case the method
LayoutController.getErrorMessage() can be used to obtain a description
of the error's reason.LayoutController.isDynamicLayoutSupported(),
LayoutController.enableDynamicNodeLayout(boolean),
LayoutController.enableDynamicEdgeLayout(boolean)public static final void verifySwimLaneStructure(VisualGraphObjectContainer visualgraphview)
VisualGraphObjectContainer. The
structure is assumed to be a valid swimlane-pool based swimlanes graph.
visualgraphview - the VisualGraphObjectContainer to verify.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||