harmonic.mz.manager
Class TreeLists

java.lang.Object
  |
  +--harmonic.mz.manager.TreeLists

public class TreeLists
extends java.lang.Object

This class provides some conveniences and stability for adding and retrieving elements of specific types from the data base tree. We have seperated these from DataManager because these functions not very general.


Constructor Summary
TreeLists()
           
 
Method Summary
 void addViewport(harmonic.mz.docnode.ViewportNode node)
          Retrieve all avalible scripts.
 void addVPTool(harmonic.mz.visuals.cards.FunctionToolShape tool)
          Add viewport tool to the viewport tool list of the module that has the FunctionStarter activated by the tool.
 java.util.Vector getVPTools()
          Return all viewport tools of all modules.
 void removeViewport(harmonic.mz.docnode.ViewportNode node)
           
 void showVPTools(boolean bShowHide)
          Show/Hide viewport tools
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLists

public TreeLists()
Method Detail

addVPTool

public void addVPTool(harmonic.mz.visuals.cards.FunctionToolShape tool)
Add viewport tool to the viewport tool list of the module that has the FunctionStarter activated by the tool.


getVPTools

public java.util.Vector getVPTools()
Return all viewport tools of all modules.


showVPTools

public void showVPTools(boolean bShowHide)
Show/Hide viewport tools


addViewport

public void addViewport(harmonic.mz.docnode.ViewportNode node)
Retrieve all avalible scripts. public Vector getLoadedScripts(){ Vector templates = new Vector(); Vector files = MZ.files().getFiles(); for (int i = 0; i < files.size(); i++){ FileNode file = (FileNode)files.elementAt(i); DataNode ts = file.findNode("Scripts"); if(ts instanceof ModelNode){ templates.addAll(((ModelNode)ts).getNodeChildren_V()); } } return templates; }


removeViewport

public void removeViewport(harmonic.mz.docnode.ViewportNode node)