edu.buffalo.fs7.jaQuzzi
Class jaQuzzi

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--edu.buffalo.fs7.jaQuzzi.jaQuzzi
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class jaQuzzi
extends javax.swing.JApplet

This class is the central class of the jaQuzzi program. It is derived from the JApplet class. The program can be run as an applet (with reduced functionality) as well as an application. In the case of given command line parameters the program is executed without any graphical user interface. The two modes are called interactive mode and batch mode. For documentation of the batch mode please refer to the information given on the following website: http://www.physics.buffalol.edu/~phygons/jaQuzzi

The jaQuzzi program is based on 3 packages:

See Also:
edu.buffalo.fs7.mathlib, edu.buffalo.fs7.qsymbol2, Dialogs, Serialized Form

Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Inner classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
static javax.swing.ImageIcon chartIcon
           
static ChartWindow chartWindow
          chart window
static javax.swing.JFrame chartWindowFrame
          holds chart window
 java.net.URL codeBase
          hold the URL in case of applet mode
static javax.swing.ImageIcon consoleIcon
           
static javax.swing.ImageIcon dataIcon
           
static DataWindow dataWindow
          data window
static javax.swing.JFrame dataWindowFrame
          holds data window
static javax.swing.ImageIcon enlargeIcon
           
static javax.swing.ImageIcon equalsIcon
           
static javax.swing.ImageIcon expIcon
           
static java.io.File file
          the currently opened file
static javax.swing.ImageIcon measureIcon
           
static javax.swing.ImageIcon newIcon
          images are a little bit tricky if a program can be run as an applet as well as an application.
static javax.swing.ImageIcon openIcon
           
static javax.swing.ImageIcon propertyIcon
           
static javax.swing.ImageIcon qubitdownIcon
           
static javax.swing.ImageIcon qubitupIcon
           
static javax.swing.ImageIcon resetIcon
           
static javax.swing.ImageIcon runIcon
           
static javax.swing.ImageIcon saveasIcon
           
static javax.swing.ImageIcon saveIcon
           
static javax.swing.ImageIcon shrinkIcon
           
static javax.swing.ImageIcon stepbackwardIcon
           
static javax.swing.ImageIcon stepforwardIcon
           
static javax.swing.ImageIcon stopIcon
           
static java.lang.String version
          version string
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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
jaQuzzi()
           
 
Method Summary
protected static Parameter getParameterSet(java.lang.String s)
          method to parse paramters from a command line parameter.
protected  java.net.URL getURL(java.lang.String filename)
          One day, JApplet will make this method obsolete.
 void init()
          init method of the jaQuzzi applet.
protected  void initIcons()
          load all the icons used by the jaQuzzi program.
static void main(java.lang.String[] s)
          this method is called when the jaQuzzi class is started from the command line.
static void updateTitle()
          in case of jaQuzzi being executed standalone, this method provides title information such as the file name.
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, 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, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version

public static final java.lang.String version
version string

newIcon

public static javax.swing.ImageIcon newIcon
images are a little bit tricky if a program can be run as an applet as well as an application. Therefore all the icons used in the jaQuzzi program are public static.
See Also:
initIcons()

openIcon

public static javax.swing.ImageIcon openIcon

saveIcon

public static javax.swing.ImageIcon saveIcon

saveasIcon

public static javax.swing.ImageIcon saveasIcon

enlargeIcon

public static javax.swing.ImageIcon enlargeIcon

shrinkIcon

public static javax.swing.ImageIcon shrinkIcon

consoleIcon

public static javax.swing.ImageIcon consoleIcon

chartIcon

public static javax.swing.ImageIcon chartIcon

dataIcon

public static javax.swing.ImageIcon dataIcon

propertyIcon

public static javax.swing.ImageIcon propertyIcon

resetIcon

public static javax.swing.ImageIcon resetIcon

runIcon

public static javax.swing.ImageIcon runIcon

stepbackwardIcon

public static javax.swing.ImageIcon stepbackwardIcon

stepforwardIcon

public static javax.swing.ImageIcon stepforwardIcon

stopIcon

public static javax.swing.ImageIcon stopIcon

measureIcon

public static javax.swing.ImageIcon measureIcon

qubitupIcon

public static javax.swing.ImageIcon qubitupIcon

qubitdownIcon

public static javax.swing.ImageIcon qubitdownIcon

expIcon

public static javax.swing.ImageIcon expIcon

equalsIcon

public static javax.swing.ImageIcon equalsIcon

codeBase

public java.net.URL codeBase
hold the URL in case of applet mode

file

public static java.io.File file
the currently opened file

chartWindowFrame

public static javax.swing.JFrame chartWindowFrame
holds chart window

chartWindow

public static ChartWindow chartWindow
chart window

dataWindowFrame

public static javax.swing.JFrame dataWindowFrame
holds data window

dataWindow

public static DataWindow dataWindow
data window
Constructor Detail

jaQuzzi

public jaQuzzi()
Method Detail

init

public void init()
init method of the jaQuzzi applet. It initializes a Mathlib object and instantiates the GatePanel class which is reseponsible for the graphical representation of the mathlib package. It initializes the toolbar as well as the popup menues and the dataWindow and chartWindow.
Overrides:
init in class java.applet.Applet
See Also:
GatePanel, ChartWindow, DataWindow

initIcons

protected void initIcons()
load all the icons used by the jaQuzzi program. The procedure is different for the applet case and the application case.

getParameterSet

protected static Parameter getParameterSet(java.lang.String s)
method to parse paramters from a command line parameter. The given String must be of the form a:b:c:d, where a,b are double numbers and c,d integers. (a = initial value, b = end value, c = steps inbetween, d = repetition per step).
Returns:
the parsed parameters as a Parameter object.

main

public static void main(java.lang.String[] s)
this method is called when the jaQuzzi class is started from the command line. It creates a frame in the case of no parameters given and put the applet into the frame, or runs the jaQuzzi class in batch mode if parameters are given.

updateTitle

public static void updateTitle()
in case of jaQuzzi being executed standalone, this method provides title information such as the file name.

getURL

protected java.net.URL getURL(java.lang.String filename)
One day, JApplet will make this method obsolete.