public abstract class TreeLayout extends Layout
| Modifier and Type | Field and Description |
|---|---|
protected NodeItem |
m_root |
m_anchor, m_bounds, m_bpts, m_insets, m_margin, m_tmpa, m_tmpbm_groupDEFAULT_STEP_TIME, INFINITY| Constructor and Description |
|---|
TreeLayout()
Create a new TreeLayout.
|
TreeLayout(java.lang.String group)
Create a new TreeLayout.
|
| Modifier and Type | Method and Description |
|---|---|
NodeItem |
getLayoutRoot()
Return the NodeItem to use as the root for this tree layout.
|
void |
reset()
Clears references to graph tuples.
|
void |
setLayoutRoot(NodeItem root)
Explicitly set the node to use as the layout root.
|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setYgetGroup, run, setGroupgetVisualization, run, setVisualizationaddActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTimeprotected NodeItem m_root
public TreeLayout()
public TreeLayout(java.lang.String group)
group - the data group to layout. This must resolve to a graph
instance, otherwise an exception will result when subclasses attempt
to retrieve the layout root.public void setLayoutRoot(NodeItem root)
root - the node to use as the root. A null value is legal, and
indicates that the root of the spanning tree of the backing graph will
be used as the layout root. If the node is not a member of this layout's
data group, an exception will be thrown.java.lang.IllegalArgumentException - if the provided root is not a member of
this layout's data group.public NodeItem getLayoutRoot()
java.lang.IllegalStateException - if the action's data group does not
resolve to a Graph instance.public void reset()