Class MapTree
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.gui.swing.tree.MapTree
- All Implemented Interfaces:
IMapTree
public class MapTree extends IObserver implements IMapTree
-
Constructor Summary
Constructors Constructor Description MapTree()
-
Method Summary
Modifier and Type Method Description void
expandTree(MapTreeItem toNode)
Expands the tree to the given node.MapTreeView
generateTree(ProjectExplorer projectExplorer)
Called to initialize the tree.MapTreeItem
getRoot()
Returns the rootMapTreeItem
node.MapTreeItem
getSelectedNode()
Returns the currently selectedMapTreeItem
node.ITreeActionManager
getTreeActionManager()
ITreeActionManager
of the tree.void
refreshTree()
Refreshes the tree view.Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, receive, removePublisher, setPublishers
-
Constructor Details
-
MapTree
public MapTree()
-
-
Method Details
-
generateTree
Description copied from interface:IMapTree
Called to initialize the tree.- Specified by:
generateTree
in interfaceIMapTree
- Parameters:
projectExplorer
- RootProjectExplorer
workspace node.- Returns:
MapTreeView
ready for rendering.
-
refreshTree
public void refreshTree()Description copied from interface:IMapTree
Refreshes the tree view.- Specified by:
refreshTree
in interfaceIMapTree
-
expandTree
Description copied from interface:IMapTree
Expands the tree to the given node.- Specified by:
expandTree
in interfaceIMapTree
- Parameters:
toNode
- Node to expand to.
-
getSelectedNode
Description copied from interface:IMapTree
Returns the currently selectedMapTreeItem
node.- Specified by:
getSelectedNode
in interfaceIMapTree
- Returns:
- Selected
MapTreeItem
node.
-
getRoot
Description copied from interface:IMapTree
Returns the rootMapTreeItem
node.- Specified by:
getRoot
in interfaceIMapTree
- Returns:
- Root
MapTreeItem
node.
-
getTreeActionManager
Description copied from interface:IMapTree
ITreeActionManager
of the tree.- Specified by:
getTreeActionManager
in interfaceIMapTree
- Returns:
ITreeActionManager
.
-