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_tmpb
m_group
DEFAULT_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 |
setLayoutRoot(NodeItem root)
Explicitly set the node to use as the layout root.
|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setY
getGroup, run, setGroup
getVisualization, run, setVisualization
addActivityListener, 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, setStepTime
protected 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.Copyright ? 2013 Regents of the University of California