Package gov.nasa.worldwind.util.tree
Interface TreeLayout
-
- All Superinterfaces:
AVList
,java.util.EventListener
,MessageListener
,java.beans.PropertyChangeListener
,Renderable
,WWObject
- All Known Implementing Classes:
BasicTreeLayout
public interface TreeLayout extends WWObject, Renderable
Handles rendering aTree
. The layout is responsible for the overall arrangement of the tree.- See Also:
Tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Method Detail
-
render
void render(DrawContext dc)
Render a tree.- Specified by:
render
in interfaceRenderable
- 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()
-
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.
-
-