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
 
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, 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, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stopClock, updateDataConnection, updateDataConnections, useMasterClock
 
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, setCursor, 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, 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

getParameter

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

init

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

start

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

stop

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

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

getParameterInfo

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

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

setAutoRefresh

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

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

setDefault

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

setGridPoints

public void setGridPoints(int pts)

setNumLevels

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

getRotationAngle

public double getRotationAngle()
Get the rotation angle.

setRotationAngle

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

getElevationAngle

public double getElevationAngle()
Get the elevation angle.

setElevationAngle

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

getPlotID

public int getPlotID()

step

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

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page