qTime
Class QTime

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--edu.davidson.tools.SApplet
                                |
                                +--qTime.QTime
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, edu.davidson.tools.SStepable

public class QTime
extends SApplet
implements edu.davidson.tools.SStepable

See Also:
Serialized Form

Fields inherited from class edu.davidson.tools.SApplet
clock, dataConnections, dataListeners, dataSources, lock
 
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
QTime()
           
 
Method Summary
 boolean action(java.awt.Event ev, java.lang.Object a)
           
 void destroy()
           
 void forward()
          Start clock.
 java.lang.String getAppletInfo()
           
 java.lang.String[][] getParameterInfo()
           
 int getWavefunctionID()
           
 void init()
           
 void pause()
          Pause the clock.
 void reset()
          Reset the clock to time=0.
 void setCaption(java.lang.String s)
           
 void setEnergyOffset(boolean set)
           
 void setImaginary(java.lang.String f)
           
 void setPotential(java.lang.String f)
           
 void setReal(java.lang.String f)
           
 void setRGBColor(int r, int g, int b)
           
 void setShowAxes(boolean show)
          Show or hide the the X and Y axes on the graph.
 void setShowPotential(boolean show)
          Show or hide the the X and Y axes on the graph.
 void setXMinMax(double min, double max)
           
 void setXTitle(java.lang.String s)
           
 void setYAutoscaleOff()
           
 void setYAutoscaleOn()
           
 void setYMinMax(double min, double max)
           
 void setYTitle(java.lang.String s)
           
 void start()
           
 void step(double dt, double time)
          Used by clock to step the simulation.
 void stepForward()
          Step the time by dt.
 void stepTimeBack()
          Step the time backward by dt.
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, getClockID, getClockTime, getDataConnectionFromDL, getDataConnectionFromDS, getDataFromDS, getDataListener, getDataListener, getDataSource, getDataSource, getID, getRunningID, getSourceData, getSourceVariables, isAutoRefresh, isClockRunning, makeDataConnection, removeDataListener, removeDataSource, reverse, setAutoRefresh, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setDefault, setDt, setExternalClock, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeForward, stopClock, updateDataConnection, updateDataConnections
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, 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, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QTime

public QTime()
Method Detail

action

public boolean action(java.awt.Event ev,
                      java.lang.Object a)
Overrides:
action in class java.awt.Component

destroy

public void destroy()
Overrides:
destroy in class SApplet

forward

public void forward()
Description copied from class: SApplet
Start clock.
Overrides:
forward in class SApplet

getAppletInfo

public java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet

getParameterInfo

public java.lang.String[][] getParameterInfo()
Overrides:
getParameterInfo in class java.applet.Applet

getWavefunctionID

public int getWavefunctionID()

init

public void init()
Overrides:
init in class java.applet.Applet

pause

public void pause()
Description copied from class: SApplet
Pause the clock.
Overrides:
pause in class SApplet

reset

public void reset()
Description copied from class: SApplet
Reset the clock to time=0.
Overrides:
reset in class SApplet

setCaption

public void setCaption(java.lang.String s)

setEnergyOffset

public void setEnergyOffset(boolean set)

setImaginary

public void setImaginary(java.lang.String f)

setPotential

public void setPotential(java.lang.String f)

setReal

public void setReal(java.lang.String f)

setRGBColor

public void setRGBColor(int r,
                        int g,
                        int b)

setShowAxes

public void setShowAxes(boolean show)
Show or hide the the X and Y axes on the graph. May need to set the gutters to zero seliminate white space.
Parameters:
show - Show the axis?

setShowPotential

public void setShowPotential(boolean show)
Show or hide the the X and Y axes on the graph. May need to set the gutters to zero seliminate white space.
Parameters:
sa - Show the axis?

setXMinMax

public void setXMinMax(double min,
                       double max)

setXTitle

public void setXTitle(java.lang.String s)

setYAutoscaleOff

public void setYAutoscaleOff()

setYAutoscaleOn

public void setYAutoscaleOn()

setYMinMax

public void setYMinMax(double min,
                       double max)

setYTitle

public void setYTitle(java.lang.String s)

start

public void start()
Overrides:
start in class java.applet.Applet

step

public void step(double dt,
                 double time)
Used by clock to step the simulation. DO NOT SCRIPT.
Specified by:
step in interface edu.davidson.tools.SStepable

stepForward

public void stepForward()
Step the time by dt.

stepTimeBack

public void stepTimeBack()
Step the time backward by dt.
Overrides:
stepTimeBack in class SApplet
See Also:
SApplet.setDt(double)

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page