This TreeSelectionModel represents the selection state of
the nodes within a graph hierarchy. Its main purpose is to synchronize
the selection state of objects represented within a JTree and node objects
within a graph hierarchy.
isMixedSelectionAllowed()
Determines whether mixed selections (where nodes and edges are selected at the same time)
are allowed.
void
setMixedSelectionAllowed(boolean mixedSelectionAllowed)
Sets whether mixed selections (where nodes and edges are selected at the same time)
are allowed.
Determines whether mixed selections (where nodes and edges are selected at the same time)
are allowed. A value of false will deselect selected edges if the user
selects a node. The default value is false.
Returns:
whether mixed selections are allowed.
setMixedSelectionAllowed
public void setMixedSelectionAllowed(boolean mixedSelectionAllowed)
Sets whether mixed selections (where nodes and edges are selected at the same time)
are allowed. A value of false will deselect selected edges if the user
selects a node. The default value is false.
Parameters:
mixedSelectionAllowed - whether mixed selections are allowed