public static interface SpaceTreeLayoutAlgorithm.ExpandCollapseManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCollapse(ILayoutContext context,
INodeLayout node)
Checks if given node can be collapsed.
|
boolean |
canExpand(ILayoutContext context,
INodeLayout node)
Checks if given node can be expanded.
|
void |
initExpansion(ILayoutContext context)
Initializes the expansion state of all nodes in given layout context.
|
void |
setExpanded(ILayoutContext context,
INodeLayout node,
boolean expanded)
Changes the expanded state of given node.
|
void initExpansion(ILayoutContext context)
context - the context to initializevoid setExpanded(ILayoutContext context, INodeLayout node, boolean expanded)
context - context in which to perform the operationnode - node to expand or collapseexpanded - true to expand, false to collapseboolean canExpand(ILayoutContext context, INodeLayout node)
context - context containing the nodenode - node to checkboolean canCollapse(ILayoutContext context, INodeLayout node)
context - context containing the nodenode - node to checkCopyright (c) 2014 itemis AG and others. All rights reserved.