|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Tree
A tree of objects, drawn in the World Window, that the user can interact with. How the tree is drawn is determined by
the TreeLayout.
TreeModel,
TreeLayout| Method Summary | |
|---|---|
void |
collapsePath(TreePath path)
Collapse a path in the tree. |
void |
expandPath(TreePath path)
Expand a path in the tree. |
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 |
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 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 |
| Methods inherited from interface gov.nasa.worldwind.render.OrderedRenderable |
|---|
getDistanceFromEye, pick |
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Method Detail |
|---|
void collapsePath(TreePath path)
path - Path to collapse.void expandPath(TreePath path)
path - Path to expand.TreeLayout getLayout()
setLayout(TreeLayout)TreeModel getModel()
setModel(TreeModel)TreeNode getNode(TreePath path)
path - Path to the node.
path if it exists in the tree.boolean isNodeExpanded(TreeNode node)
node - Node to test.
boolean isPathExpanded(TreePath path)
path - Path to test.
void makeVisible(TreePath path)
path - Path to make visible.void setLayout(TreeLayout layout)
layout - New layout.getLayout()void setModel(TreeModel model)
model - New tree model.getModel()void togglePath(TreePath path)
path - 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 | ||||||||