mathapps
Class Analytic2D

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

public class Analytic2D
extends SApplet
implements edu.davidson.tools.SDataSource, 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
Analytic2D()
           
 
Method Summary
 java.lang.String getAppletInfo()
           
 java.lang.String getFunctionStr(java.lang.String string)
           
 SApplet getOwner()
          Data source method.
 java.lang.String getParameter(java.lang.String key, java.lang.String def)
           
 java.lang.String[][] getParameterInfo()
           
 double[][] getVariables()
          Data source method.
 java.lang.String[] getVarStrings()
          Data source method.
 void init()
           
static void main(java.lang.String[] args)
           
 void reset()
          Reset to time=0.
 boolean setFuncion(java.lang.String function, java.lang.String xvar, java.lang.String yvar)
          Set the function string and the independent variable.
 boolean setFunctionStr(java.lang.String function)
          Set the function string.
 void setMinMax(double xmin_, double xmax_, double ymin_, double ymax_)
          Set the minimum and maximum values sorted by the histogram.
 void setNumPts(int nx, int ny)
          Set the number of bins in the histogram.
 void setOwner(SApplet owner)
          Data source method.
 void step(double dt, double time)
           
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, destroy, forward, getClockID, getClockTime, getDataConnectionFromDL, getDataConnectionFromDS, getDataFromDS, getDataListener, getDataListener, getDataSource, getDataSource, getID, getRunningID, getSourceData, getSourceVariables, isAutoRefresh, isClockRunning, makeDataConnection, pause, 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, 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, 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, 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
 
Methods inherited from interface edu.davidson.tools.SDataSource
getID
 

Constructor Detail

Analytic2D

public Analytic2D()
Method Detail

getAppletInfo

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

getFunctionStr

public java.lang.String getFunctionStr(java.lang.String string)

getOwner

public SApplet getOwner()
Data source method. DO NOT SCRIPT.
Specified by:
getOwner in interface edu.davidson.tools.SDataSource

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

getVariables

public double[][] getVariables()
Data source method. DO NOT SCRIPT.
Specified by:
getVariables in interface edu.davidson.tools.SDataSource

getVarStrings

public java.lang.String[] getVarStrings()
Data source method. DO NOT SCRIPT.
Specified by:
getVarStrings in interface edu.davidson.tools.SDataSource

init

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

main

public static void main(java.lang.String[] args)

reset

public void reset()
Reset to time=0.
Overrides:
reset in class SApplet

setFuncion

public boolean setFuncion(java.lang.String function,
                          java.lang.String xvar,
                          java.lang.String yvar)
Set the function string and the independent variable.
Parameters:
function - the function string
variable - the independent variable
Returns:
true if the string is a valid function.

setFunctionStr

public boolean setFunctionStr(java.lang.String function)
Set the function string.
Parameters:
function - the function string
Returns:
true if the string is a valid function.

setMinMax

public void setMinMax(double xmin_,
                      double xmax_,
                      double ymin_,
                      double ymax_)
Set the minimum and maximum values sorted by the histogram.

setNumPts

public void setNumPts(int nx,
                      int ny)
Set the number of bins in the histogram.

setOwner

public void setOwner(SApplet owner)
Data source method. DO NOT SCRIPT.
Specified by:
setOwner in interface edu.davidson.tools.SDataSource

step

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

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page