script
Class ScriptListener

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

public class ScriptListener
extends SApplet
implements edu.davidson.tools.SDataListener

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
ScriptListener()
           
 
Method Summary
 void addData(edu.davidson.tools.SDataSource s, int id, double[] x, double[] y)
           
 void addDatum(edu.davidson.tools.SDataSource s, int id, double x, double y)
           
 void clearSeries(int id)
           
 void deleteSeries(int id)
           
 void destroy()
          Destroy all threads and cleanup the applet.
 java.lang.String getAppletInfo()
          Get the applet information.
 SApplet getOwner()
          Get the object's ownner.
 java.lang.String[][] getParameterInfo()
           
 void init()
           
 void setDefault()
          Set default values and deletes all data connections.
 void setJSFunction(java.lang.String fstr)
          Change the javascript function that should be called whenerver data changes in a data source.
 void setOwner(SApplet o)
          Set the object's ownner.
 void setRespondToAddData(boolean respond)
          Enable or disable response to an addData notification from a data source.
 void setRespondToAddDatum(boolean respond)
          Enable or disable response to an addDatum notification from a data source.
 void setRespondToClearSeries(boolean respond)
          Enable or disable response to a clearSeries notification from a data source.
 void setRespondToDeleteSeries(boolean respond)
          Enable or disable response to a deleteSeries notification from a data source.
 void start()
           
 void stop()
           
 
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, setAutoRefresh, 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
 
Methods inherited from interface edu.davidson.tools.SDataListener
getID
 

Constructor Detail

ScriptListener

public ScriptListener()
Method Detail

addData

public void addData(edu.davidson.tools.SDataSource s,
                    int id,
                    double[] x,
                    double[] y)
Specified by:
addData in interface edu.davidson.tools.SDataListener

addDatum

public void addDatum(edu.davidson.tools.SDataSource s,
                     int id,
                     double x,
                     double y)
Specified by:
addDatum in interface edu.davidson.tools.SDataListener

clearSeries

public void clearSeries(int id)
Specified by:
clearSeries in interface edu.davidson.tools.SDataListener

deleteSeries

public void deleteSeries(int id)
Specified by:
deleteSeries in interface edu.davidson.tools.SDataListener

destroy

public void destroy()
Destroy all threads and cleanup the applet.
Overrides:
destroy in class SApplet

getAppletInfo

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

getOwner

public SApplet getOwner()
Get the object's ownner. This method is used by to establish a data connection and should not be called by javascript.
Specified by:
getOwner in interface edu.davidson.tools.SDataListener
Returns:
SApplet a reference to this applet

getParameterInfo

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

init

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

setDefault

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

setJSFunction

public void setJSFunction(java.lang.String fstr)
Change the javascript function that should be called whenerver data changes in a data source.
Parameters:
fstr - The javascript function

setOwner

public void setOwner(SApplet o)
Set the object's ownner. This method has been disabled since an applet cannot have an owner.
Specified by:
setOwner in interface edu.davidson.tools.SDataListener

setRespondToAddData

public void setRespondToAddData(boolean respond)
Enable or disable response to an addData notification from a data source.
Parameters:
respond - true will enable the response

setRespondToAddDatum

public void setRespondToAddDatum(boolean respond)
Enable or disable response to an addDatum notification from a data source.
Parameters:
respond - true will enable the response

setRespondToClearSeries

public void setRespondToClearSeries(boolean respond)
Enable or disable response to a clearSeries notification from a data source.
Parameters:
respond - true will enable the response

setRespondToDeleteSeries

public void setRespondToDeleteSeries(boolean respond)
Enable or disable response to a deleteSeries notification from a data source.
Parameters:
respond - true will enable the response

start

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

stop

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

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page