|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.util.tree.BasicTree
public class BasicTree
Basic implementation of a Tree control.
| Field Summary | |
|---|---|
protected Set<TreePath> |
expandedNodes
|
protected TreeLayout |
layout
|
protected TreeModel |
model
|
| Constructor Summary | |
|---|---|
BasicTree()
Create an empty tree. |
|
| Method Summary | |
|---|---|
void |
collapsePath(TreePath path)
Collapse a path in the tree. |
void |
expandPath(TreePath path)
Expand a path in the tree. |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point. |
TreeLayout |
getLayout()
Get the tree layout. |
TreeModel |
getModel()
Get the tree model. |
TreeNode |
getNode(TreePath path)
Locate a node in the tree. |
boolean |
isNodeExpanded(TreeNode node)
Is a node expanded? |
boolean |
isPathExpanded(TreePath path)
Is a path expanded in the tree? |
void |
makeVisible(TreePath path)
Make a node in the tree visible in the rendered tree. |
void |
pick(DrawContext dc,
Point pickPoint)
Executes a pick of the ordered renderable. |
void |
preRender(DrawContext dc)
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the provided draw context. |
void |
setLayout(TreeLayout layout)
Set the tree layout. |
void |
setModel(TreeModel model)
Set the tree model. |
void |
togglePath(TreePath path)
Expand a collapsed path, or collapse an expanded path. |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
onMessage, propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Field Detail |
|---|
protected Set<TreePath> expandedNodes
protected TreeLayout layout
protected TreeModel model
| Constructor Detail |
|---|
public BasicTree()
| Method Detail |
|---|
public void collapsePath(TreePath path)
collapsePath in interface Treepath - Path to collapse.public void expandPath(TreePath path)
expandPath in interface Treepath - Path to expand.public double getDistanceFromEye()
getDistanceFromEye in interface OrderedRenderablepublic TreeLayout getLayout()
getLayout in interface TreeTree.setLayout(TreeLayout)public TreeModel getModel()
getModel in interface TreeTree.setModel(TreeModel)public TreeNode getNode(TreePath path)
getNode in interface Treepath - Path to the node.
path if it exists in the tree.public boolean isNodeExpanded(TreeNode node)
isNodeExpanded in interface Treenode - Node to test.
public boolean isPathExpanded(TreePath path)
isPathExpanded in interface Treepath - Path to test.
public void makeVisible(TreePath path)
makeVisible in interface Treepath - Path to make visible.
public void pick(DrawContext dc,
Point pickPoint)
pick in interface OrderedRenderabledc - the current draw context.pickPoint - the pick point.public void preRender(DrawContext dc)
preRender in interface PreRenderablepublic void render(DrawContext dc)
Renderable to render itself using the provided draw context.
render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setLayout(TreeLayout layout)
setLayout in interface Treelayout - New layout.Tree.getLayout()public void setModel(TreeModel model)
setModel in interface Treemodel - New tree model.Tree.getModel()public void togglePath(TreePath path)
togglePath in interface Treepath - Path to operate on. If the node defined by path is expanded, it will be collapsed. If it is
collapsed it will be expanded.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||