|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.incremental.GroupingSupport
public class GroupingSupport
Helper class that is used to manage hierarchically grouped graphs.
Nested Class Summary | |
---|---|
static interface |
GroupingSupport.Visitor
Visitor interface that can be used to traverse the descendants of a group node |
Method Summary | |
---|---|
void |
assignEdgeGroupNodesToGroups(Layers layers)
|
void |
assignLabelNodesToGroups(Layers layers,
ItemFactory itemFactory)
|
NodeList |
getChildren(Node groupNode)
Returns the direct children of the given group node. |
NodeList |
getDecendants(Node groupNode)
Returns all direct and indirect children of the given group node. |
double |
getMinimumGroupDistance()
|
Node |
getParentNode(Node node)
Returns the parent group node of the given node, or null if the given node is a top-level node. |
void |
hideGroupNodes()
Hides the group nodes and adjacent edges from the graph. |
boolean |
isActive()
Returns whether or not groupingSupport is active. |
boolean |
isDescendant(Node node,
Node groupNode)
Returns whether or not the given node is a direct or indirect child of the given group node. |
boolean |
isGroupNode(Node node)
Returns whether or not the given node is a non-empty group node. |
void |
removeEdgeGroupAssignment(Layers layers)
|
void |
setMinimumGroupDistance(double minimumGroupDistance)
|
void |
unhideGroupNodes()
Unhides all previously hidden group nodes and adjacent edges |
void |
visitDecendants(Node groupNode,
GroupingSupport.Visitor visitor)
Visits all descendants of the given group node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void hideGroupNodes()
public void unhideGroupNodes()
public double getMinimumGroupDistance()
public void setMinimumGroupDistance(double minimumGroupDistance)
public void assignEdgeGroupNodesToGroups(Layers layers)
public void removeEdgeGroupAssignment(Layers layers)
public boolean isGroupNode(Node node)
public void assignLabelNodesToGroups(Layers layers, ItemFactory itemFactory)
public boolean isActive()
public void visitDecendants(Node groupNode, GroupingSupport.Visitor visitor)
public NodeList getDecendants(Node groupNode)
public NodeList getChildren(Node groupNode)
public Node getParentNode(Node node)
null
if the given node is a top-level node.
public boolean isDescendant(Node node, Node groupNode)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |