Interface ExpandCollapseManager
- All Known Implementing Classes:
- DAGExpandCollapseManager
public interface ExpandCollapseManager
A manager that controls expanding and collapsing nodes in a Graph.
- Since:
- 2.0
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanCollapse(LayoutContext context, NodeLayout node) Checks if given node can be collapsed.booleancanExpand(LayoutContext context, NodeLayout node) Checks if given node can be expanded.voidinitExpansion(LayoutContext context) Initializes the expansion state of all nodes in given layout context.voidsetExpanded(LayoutContext context, NodeLayout node, boolean expanded) Changes the expanded state of given node.
- 
Method Details- 
initExpansionInitializes the expansion state of all nodes in given layout context. The receiver can initialize its internal state related to the layout context and add its listeners if necessary.- Parameters:
- context- the context to initialize
 
- 
setExpandedChanges the expanded state of given node. It prunes/unprunes nodes and hides/shows connections in the graph according to its policy. If requested operation cannot be currently performed on the node, it does nothing.- Parameters:
- context- context in which to perform the operation
- node- node to expand or collapse
- expanded- true to expand, false to collapse
 
- 
canExpandChecks if given node can be expanded.- Parameters:
- context- context containing the node
- node- node to check
 
- 
canCollapseChecks if given node can be collapsed.- Parameters:
- context- context containing the node
- node- node to check
 
 
-