pipe.gui
Class ModuleManager

java.lang.Object
  |
  +--pipe.gui.ModuleManager
All Implemented Interfaces:
Constants

public class ModuleManager
extends java.lang.Object
implements Constants

The ModuleManager class contains methods to create swing components to allow the user to load modules and execute methods within them. To use, instantiate a ModuleManager object and use the methods to return the required components.

Author:
Camilla Clifford

Nested Class Summary
 class ModuleManager.TreeHandler
           
 
Field Summary
 
Fields inherited from interface pipe.gui.Constants
ADDTOKEN, ANIMATE, ANNOTATION, ANNOTATION_DEFAULT_FONT, ANNOTATION_DEFAULT_FONT_SIZE, ANNOTATION_LAYER_OFFSET, ANNOTATION_MIN_WIDTH, ANNOTATION_SIZE_OFFSET, ARC, ARC_CONTROL_POINT_CONSTANT, ARC_LAYER_OFFSET, ARC_PATH_PROXIMITY_RADIUS, ARC_PATH_SELECTION_RADIUS, ARC_POINT_LAYER_OFFSET, CREATING, DEFAULT_ELEMENT_TYPE, DELETE, DELTOKEN, DRAW, ELEMENT_FILL_COLOUR, ELEMENT_LINE_COLOUR, ENABLED_TRANSITION_COLOUR, FIRE, GRID, IMMTRANS, LOWEST_LAYER_OFFSET, NOTE_DISABLED_COLOUR, NOTE_EDITING_COLOUR, PLACE, PLACE_TRANSITION_HEIGHT, PLACE_TRANSITION_LAYER_OFFSET, PLACE_TRANSITION_PROXIMITY_RADIUS, PROPERTY_FILE_DESC, PROPERTY_FILE_EXTENSION, RANDOM, RESERVED_BORDER, RESIZE_POINT_DOWN_COLOUR, SELECT, SELECTION_FILL_COLOUR, SELECTION_LAYER_OFFSET, SELECTION_LINE_COLOUR, START, STEPBACKWARD, STEPFORWARD, STOP, TIMEDTRANS
 
Constructor Summary
ModuleManager()
           
 
Method Summary
 void addModuleToTree(javax.swing.tree.DefaultMutableTreeNode newNode)
          Adds a new node to the Module subtree
 javax.swing.JTree getModuleTree()
          Method creates and returns a Module management tree.
 void removeModuleFromTree(javax.swing.tree.DefaultMutableTreeNode newNode)
          Removes a node from the Module subtree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleManager

public ModuleManager()
Method Detail

getModuleTree

public javax.swing.JTree getModuleTree()
Method creates and returns a Module management tree. This consists of two nodes, one resposible for listing all the available modules from the module directory, and another for admin options such as list refreshing. Each node of the tree has it's own user object, for class nodes this will be ModuleClass, for method nodes ModuleMethod, and another one yet to be implemented for other options. When the user clicks on a method node the method is invoked.


addModuleToTree

public void addModuleToTree(javax.swing.tree.DefaultMutableTreeNode newNode)
Adds a new node to the Module subtree

Parameters:
newNode - The new node representing a new module.

removeModuleFromTree

public void removeModuleFromTree(javax.swing.tree.DefaultMutableTreeNode newNode)
Removes a node from the Module subtree

Parameters:
newNode - The node to be removed.