NASA World Wind

gov.nasa.worldwind.util.tree
Interface TreeLayout

All Superinterfaces:
AVList, EventListener, MessageListener, PropertyChangeListener, Renderable, WWObject
All Known Implementing Classes:
BasicTreeLayout

public interface TreeLayout
extends WWObject, Renderable

Handles rendering a Tree. The layout is responsible for the overall arrangement of the tree.

See Also:
Tree

Method Summary
 TreeAttributes getAttributes()
          Get the tree attributes.
 void makeVisible(TreePath path)
          Make a node in the tree visible in the rendered tree.
 void render(DrawContext dc)
          Render a tree.
 void setAttributes(TreeAttributes attributes)
          Set the tree attributes.
 
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
 

Method Detail

getAttributes

TreeAttributes getAttributes()
Get the tree attributes.

Returns:
Tree attributes.
See Also:
setAttributes(TreeAttributes)

makeVisible

void makeVisible(TreePath path)
Make a node in the tree visible in the rendered tree. For example, scroll the tree viewport so that a path is visible.

Parameters:
path - Path to make visible.

render

void render(DrawContext dc)
Render a tree.

Specified by:
render in interface Renderable
Parameters:
dc - Draw context to draw in.
See Also:
DrawContext

setAttributes

void setAttributes(TreeAttributes attributes)
Set the tree attributes.

Parameters:
attributes - New attributes.
See Also:
getAttributes()

NASA World Wind