Package adams.gui.flow.tree
Class StateContainer
- java.lang.Object
-
- adams.gui.flow.tree.StateContainer
-
public class StateContainer extends Object
Simple container that just captures the current state of things of the flow tree, which allows menu items to decide whether to be executable or not.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description booleancanPastewhether clipboard content can be pasted.booleancanRemovewhether the node can be deleted.booleaneditablewhether the tree/node is editable.booleanisMutablewhether the node is a mutable actor handler.booleanisParentMutablewhether the parent is a mutable actor handler.booleanisSingleSelwhether only a single node is selected.AbstractActorTemplatelastTemplatethe last template that was used.TreeOperations.InsertPositionlastTemplateInsertPositionthe position of the last template that was added via 'Add template'.NodenodeAtMouseLocthe node at the mouse position.intnumSelthe number of selected nodes.Nodeparentthe parent of the selected node.FlowExecutionListeningSupporterrunningFlowthe currently running flow.NodeselNodethe node in case of single selection.TreePathselPaththe path in case of single selection.TreePath[]selPathsthe currently selected paths.Treetreethe tree this state is for.
-
Constructor Summary
Constructors Constructor Description StateContainer()
-
-
-
Field Detail
-
tree
public Tree tree
the tree this state is for.
-
selPaths
public TreePath[] selPaths
the currently selected paths.
-
numSel
public int numSel
the number of selected nodes.
-
nodeAtMouseLoc
public Node nodeAtMouseLoc
the node at the mouse position.
-
isSingleSel
public boolean isSingleSel
whether only a single node is selected.
-
selPath
public TreePath selPath
the path in case of single selection.
-
selNode
public Node selNode
the node in case of single selection.
-
parent
public Node parent
the parent of the selected node.
-
editable
public boolean editable
whether the tree/node is editable.
-
canRemove
public boolean canRemove
whether the node can be deleted.
-
canPaste
public boolean canPaste
whether clipboard content can be pasted.
-
isMutable
public boolean isMutable
whether the node is a mutable actor handler.
-
isParentMutable
public boolean isParentMutable
whether the parent is a mutable actor handler.
-
lastTemplate
public AbstractActorTemplate lastTemplate
the last template that was used.
-
lastTemplateInsertPosition
public TreeOperations.InsertPosition lastTemplateInsertPosition
the position of the last template that was added via 'Add template'.
-
runningFlow
public FlowExecutionListeningSupporter runningFlow
the currently running flow.
-
-