splotter
Class SPlotter

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

public class SPlotter
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
SPlotter()
           
 
Method Summary
 void destroy()
          Used by the browser when the HTML page is closed.
 java.lang.String getAppletInfo()
           
 double getElevationAngle()
          Get the elevation angle.
 java.lang.String getParameter(java.lang.String key, java.lang.String def)
           
 java.lang.String[][] getParameterInfo()
           
 int getPlotID()
           
 double getRotationAngle()
          Get the rotation angle.
 void init()
           
 boolean set(int id, java.lang.String name, java.lang.String parList)
          Change the properies of an object.
 void setAutoRefresh(boolean ar)
          Repaint whenevers the system parameters are changed.
 void setDefault()
          Set default values and deletes all data connections.
 void setElevationAngle(double angle)
          Sets the elevation angle.
 void setFunction(java.lang.String funcStr)
          Sets the first function.
 void setFunction1(java.lang.String funcStr)
          Sets the first function.
 void setFunction2(java.lang.String funcStr)
          Sets the second function.
 void setGridPoints(int pts)
           
 void setNumLevels(int num)
          Sets the number of countour levels.
 void setRotationAngle(double angle)
          Sets the rotation angle.
 void start()
          Used by the browser when the HTML page is active.
 void step(double dt, double t)
           
 void stop()
          Used by the browser when the HTML page is hidden.
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, forward, getClockID, getClockTime, getDataConnectionFromDL, getDataConnectionFromDS, getDataFromDS, getDataListener, getDataListener, getDataSource, getDataSource, getID, getRunningID, getSourceData, getSourceVariables, isAutoRefresh, isClockRunning, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setDt, setExternalClock, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, 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
 
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
action, 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

SPlotter

public SPlotter()
Method Detail

destroy

public void destroy()
Used by the browser when the HTML page is closed. Do not script.
Overrides:
destroy in class SApplet

getAppletInfo

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

getElevationAngle

public double getElevationAngle()
Get the elevation angle.

getParameter

public java.lang.String getParameter(java.lang.String key,
                                     java.lang.String def)

getParameterInfo

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

getPlotID

public int getPlotID()

getRotationAngle

public double getRotationAngle()
Get the rotation angle.

init

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

set

public boolean set(int id,
                   java.lang.String name,
                   java.lang.String parList)
Change the properies of an object. The first argument is the object identifier. The second argument is the name of the property and the third is a comma-delimited list of parameters. For example, the scale can be added a follows:

set(id, "scale", "xmin=0, xmax=2, autoscalx=false");

Parameters:
id - the identifier of the object
name - the type of property to be created.
parList - a list of parameters
Returns:
true if successful

setAutoRefresh

public void setAutoRefresh(boolean ar)
Repaint whenevers the system parameters are changed.
Overrides:
setAutoRefresh in class SApplet
Parameters:
autoRefresh - Automatic repaint?

setDefault

public void setDefault()
Set default values and deletes all data connections.
Overrides:
setDefault in class SApplet

setElevationAngle

public void setElevationAngle(double angle)
Sets the elevation angle.
Parameters:
angle - the elevation angle in degrees

setFunction

public void setFunction(java.lang.String funcStr)
Sets the first function.
Parameters:
funcStr - the function string

setFunction1

public void setFunction1(java.lang.String funcStr)
Sets the first function. Time animation is stopped and time is set to zero. Rotation will also stop.
Parameters:
funcStr - the function string

setFunction2

public void setFunction2(java.lang.String funcStr)
Sets the second function. The second function only appears on ThreeD plots. It has no effect on the density plot.
Parameters:
funcStr - the function string

setGridPoints

public void setGridPoints(int pts)

setNumLevels

public void setNumLevels(int num)
Sets the number of countour levels.
Parameters:
num - the number of levels

setRotationAngle

public void setRotationAngle(double angle)
Sets the rotation angle.
Parameters:
angle - the rotation angle in degrees

start

public void start()
Used by the browser when the HTML page is active. Do not script.
Overrides:
start in class java.applet.Applet

step

public void step(double dt,
                 double t)
Specified by:
step in interface edu.davidson.tools.SStepable

stop

public void stop()
Used by the browser when the HTML page is hidden. Do not script.
Overrides:
stop in class java.applet.Applet

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page