harmonic.mz.manager
Class MZ

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--harmonic.mz.manager.MZ
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class MZ
extends java.applet.Applet

This is the main application class. Normally execution begins in this class's main function, which only calls the MZ constructor.

See Also:
Serialized Form

Field Summary
static int LINUX
           
static int MAC
           
static int SGI
           
static int SUN
           
static int WAIT_COMP
           
static int WAIT_COMPILING
           
static int WAIT_FILE
           
static int WAIT_RENDER
           
static int WINDOWS
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MZ()
           
MZ(java.lang.String[] args)
           
 
Method Summary
static harmonic.meshGeom.geom.AppInterface appInterface()
          Return the AppInterface for the math library
static ClippingPlaneManager clippingPlanes()
          Returns the single ClippingPlaneManager
static CollaborationManager collaboration()
          Return the single CollaborationManager.
static DataManager data()
          Return the single DataManager.
static void dispatchEvents()
          Tells the MZ over-ride of the event que to process events untill none are left.
static java.lang.String execString(java.lang.String dir, java.lang.String _systemCall)
          Execute the string using the executatle in the sub directory under the given directory considering the current platform we are running on.
static int exit()
          Exit the application.
static FileManager files()
          Return the single FileManager.
static harmonic.mz.backstage.ViewportFiller filler()
          Return the single ViewportFiller.
 int getID()
           
static int getPlatform()
          Return platform id, for comparison with the constant values defined in this class.
static java.lang.String getWorkingDir()
          Return the directory the application is installed in.
static harmonic.mz.backstage.GridManager grid()
          Return the single GridManager.
static GUIManager gui()
          Return the single GUIManager.
static HelpManager help()
          Return the single HelpManager.
static boolean isInitialized()
          Return whether initalization is compleat
static harmonic.mz.gui.backstage.StringCommandMapper keyMapper()
           
static LightManager lights()
          Returns the single LightManager.
static void main(java.lang.String[] args)
          Applicatio{});n initialization function.
static harmonic.viewer3D.MemoryManager memory()
          Return the single MemoryManager.
static MessageManager messages()
          Return the single Message.
static ModuleManager modules()
          Return the single ModuleManager.
static ProgressManager progress()
          Return the single ProgressManager.
static Settings settings()
          Return the single Settings.
static TaskManager tasks()
          Return the single TaskManager.
static TreeLists treeLists()
          Return the single TreeLists.
static UCSManager ucs()
          Return the single UCSManager,
static UndoManager undo()
          Return the single UndoManager.
static ValidationManager validation()
          Return the single ValidationManager.
static java.lang.String version()
           
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WINDOWS

public static final int WINDOWS
See Also:
Constant Field Values

SUN

public static final int SUN
See Also:
Constant Field Values

LINUX

public static final int LINUX
See Also:
Constant Field Values

SGI

public static final int SGI
See Also:
Constant Field Values

MAC

public static final int MAC
See Also:
Constant Field Values

WAIT_FILE

public static final int WAIT_FILE
See Also:
Constant Field Values

WAIT_COMP

public static final int WAIT_COMP
See Also:
Constant Field Values

WAIT_COMPILING

public static final int WAIT_COMPILING
See Also:
Constant Field Values

WAIT_RENDER

public static final int WAIT_RENDER
See Also:
Constant Field Values
Constructor Detail

MZ

public MZ()

MZ

public MZ(java.lang.String[] args)
Method Detail

main

public static void main(java.lang.String[] args)
Applicatio{});n initialization function. String parameters: first parameter is always the working directory, others follow switches.
[-m modulename] Load module. Name is the module's Java package. Module package requires a class with a that is an all upper case version of the last word of the package name.
[-p pythonscript] Run a short python program entirly contained in command string
[filename ending in .mvg] Open model document file

Order of initialization:
Create the application database Create the basic feature set module (always) Read workingdir/general.mvg and replace default settings
Read workingdir/recent.mvg to fill in recent file list
Create the basic user interface elements
Read workingdir/mod_stubs to determain available modules
Open module referenced by module stubs with autoLoad==true
Process arguments 1 - (n-1) checking for -m -p or filenames, opening model files and running scripts.
Show the main frame.


getID

public int getID()

isInitialized

public static boolean isInitialized()
Return whether initalization is compleat


getWorkingDir

public static java.lang.String getWorkingDir()
Return the directory the application is installed in.


getPlatform

public static int getPlatform()
Return platform id, for comparison with the constant values defined in this class.


appInterface

public static harmonic.meshGeom.geom.AppInterface appInterface()
Return the AppInterface for the math library


data

public static DataManager data()
Return the single DataManager.


lights

public static LightManager lights()
Returns the single LightManager.


clippingPlanes

public static ClippingPlaneManager clippingPlanes()
Returns the single ClippingPlaneManager


treeLists

public static TreeLists treeLists()
Return the single TreeLists.


collaboration

public static CollaborationManager collaboration()
Return the single CollaborationManager.


files

public static FileManager files()
Return the single FileManager.


grid

public static harmonic.mz.backstage.GridManager grid()
Return the single GridManager.


help

public static HelpManager help()
Return the single HelpManager.


memory

public static harmonic.viewer3D.MemoryManager memory()
Return the single MemoryManager.


modules

public static ModuleManager modules()
Return the single ModuleManager.


progress

public static ProgressManager progress()
Return the single ProgressManager.


tasks

public static TaskManager tasks()
Return the single TaskManager.


ucs

public static UCSManager ucs()
Return the single UCSManager,


undo

public static UndoManager undo()
Return the single UndoManager.


validation

public static ValidationManager validation()
Return the single ValidationManager.


filler

public static harmonic.mz.backstage.ViewportFiller filler()
Return the single ViewportFiller.


gui

public static GUIManager gui()
Return the single GUIManager.


messages

public static MessageManager messages()
Return the single Message.


settings

public static Settings settings()
Return the single Settings.


dispatchEvents

public static void dispatchEvents()
Tells the MZ over-ride of the event que to process events untill none are left. Handy for not hanging the ui thread.


keyMapper

public static harmonic.mz.gui.backstage.StringCommandMapper keyMapper()

version

public static java.lang.String version()

execString

public static java.lang.String execString(java.lang.String dir,
                                          java.lang.String _systemCall)
Execute the string using the executatle in the sub directory under the given directory considering the current platform we are running on.


exit

public static int exit()
Exit the application. This will query the user about un saved files and save interface settings