Class sTools.SApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----sTools.SApplet

public class SApplet
extends Applet

Variable Index

 o clock
 
 o dataConnections
 
 o dataListeners
 
 o dataSources
 

Constructor Index

 o SApplet()
 

Method Index

 o addDataListener(Object)
 
 o addDataSource(Object)
Add a data source to the list.
 o cleanupDataConnections()
Remove dataConnections if either the source or the listener no longer exist.
 o clearAllData()
Delete all the data that has been sent to the DataConnections.
 o clearData(int)
Delete all the data that has been sent to the DataConnections.
 o cyclingClock()
Override this method if special action needs to be taken when the clock is cycled by the SApplet.
 o deleteDataConnection(int)
Break the data connection identified by the id.
 o deleteDataConnections()
Break all data connections for this applet's instance.
 o destroy()
 
 o getClockID()
Get the ID for use as a data source.
 o getDataConnectionFromDL(SDataListener)
Find the first data connection in the list that has a specific data listener.
 o getDataConnectionFromDS(SDataSource)
Find the first data connection in the list that has a specific data source.
 o getDataListener(int)
 
 o getDataListener(String)
 
 o getDataSource(int)
Find the data source with the given id.
 o getDataSource(String)
Find the data source with the given id.
 o getID()
 
 o getRunningID()
 
 o makeDataConnection(int, int, int, String, String)
Set the DataConnection for the applet.
 o removeDataListener(int)
 
 o removeDataSource(int)
Remove the data source with the given id.
 o setClockContinous()
Set the clock to run continously.
 o setClockCycle(double, double)
Set the clock to cycle between the minTime and maxTime.
 o setClockOneShot(double, double)
Set the clock to run from minTime to maxTime and stop.
 o setClockTime(double)
Set the clock time.
 o setConnectionSmoothing(int, int)
Have the data connection smooth the data before it is sent to the data listener.
 o setConnectionStride(int, int)
Have the data connection smooth the data before it is sent to the data listener.
 o setRunningID()
 
 o setRunningID(Object)
 
 o startClock()
Stop the clock
 o stopClock()
Stop the clock
 o stoppingClock()
Override this method if special action needs to be taken when the clock is stopped by the SApplet.
 o updateDataConnection(int)
Have a single data source update its data connections.
 o updateDataConnections()
Have all data sources update their data to their connections.
 o useMasterClock()
Sets applet to use the master clock shared by all applets.

Variables

 o dataSources

 public static Hashtable dataSources

 o dataListeners

 public static Hashtable dataListeners

 o clock

 public SClock clock

 o dataConnections

 public Vector dataConnections

Constructors

 o SApplet

 public SApplet()

Methods

 o destroy

 public synchronized void destroy()
Overrides:
destroy in class Applet

 o makeDataConnection

 public int makeDataConnection(int sourceID,
                               int listenerID,
                               int seriesID,
                               String xStr,
                               String yStr)
Set the DataConnection for the applet.
Parameters:
sourceID - The id of the data source.
listenerID - The id of the data listener. This is usually an applet.
seriesID - The id of the series in the data listener.
xStr - The function of the data source variables to be plotted on the horizontal axis.
xStr - The function of the data source variables to be plotted on the vertical axis.

 o clearAllData

 public void clearAllData()
Delete all the data that has been sent to the DataConnections.

 o clearData

 public void clearData(int id)
Delete all the data that has been sent to the DataConnections.

 o updateDataConnection

 public void updateDataConnection(int id)
Have a single data source update its data connections.
Parameters:
id - The integer id of the data source.

 o updateDataConnections

 public void updateDataConnections()
Have all data sources update their data to their connections.

 o deleteDataConnections

 public void deleteDataConnections()
Break all data connections for this applet's instance.

 o deleteDataConnection

 public void deleteDataConnection(int id)
Break the data connection identified by the id.
Parameters:
id - The data connection id.

 o getDataConnectionFromDS

 public SDataConnection getDataConnectionFromDS(SDataSource ds)
Find the first data connection in the list that has a specific data source.
Returns:
s SDataConnection

 o getDataConnectionFromDL

 public SDataConnection getDataConnectionFromDL(SDataListener dl)
Find the first data connection in the list that has a specific data listener.
Returns:
s SDataConnection

 o cleanupDataConnections

 public final void cleanupDataConnections()
Remove dataConnections if either the source or the listener no longer exist.

 o getRunningID

 public final Object getRunningID()

 o setRunningID

 public final void setRunningID(Object id)

 o setRunningID

 public final void setRunningID()

 o getID

 public final int getID()

 o setConnectionSmoothing

 public final boolean setConnectionSmoothing(int id,
                                             int num)
Have the data connection smooth the data before it is sent to the data listener.

 o setConnectionStride

 public final boolean setConnectionStride(int id,
                                          int num)
Have the data connection smooth the data before it is sent to the data listener.

 o getClockID

 public final int getClockID()
Get the ID for use as a data source.

 o useMasterClock

 public void useMasterClock()
Sets applet to use the master clock shared by all applets. This process cannot be reversed!

 o setClockTime

 public void setClockTime(double t)
Set the clock time.
Parameters:
t - The clock time.

 o setClockOneShot

 public void setClockOneShot(double minTime,
                             double maxTime)
Set the clock to run from minTime to maxTime and stop.
Parameters:
minTime - The maximum time.
maxTime - The maximum time.

 o setClockContinous

 public void setClockContinous()
Set the clock to run continously.
See Also:
setClockOneShot, setClockCycle

 o setClockCycle

 public void setClockCycle(double minTime,
                           double maxTime)
Set the clock to cycle between the minTime and maxTime.
Parameters:
minTime - The maximum time.
maxTime - The maximum time.

 o startClock

 public void startClock()
Stop the clock

 o stoppingClock

 protected void stoppingClock()
Override this method if special action needs to be taken when the clock is stopped by the SApplet.

 o cyclingClock

 protected void cyclingClock()
Override this method if special action needs to be taken when the clock is cycled by the SApplet.

 o stopClock

 public void stopClock()
Stop the clock

 o addDataSource

 public static final void addDataSource(Object ds)
Add a data source to the list.
Parameters:
ds - The data source object.

 o removeDataSource

 public final void removeDataSource(int id)
Remove the data source with the given id. Look for and remove data connections to this data source.
Parameters:
id - The integer id that identifies the data source.

 o getDataSource

 public static final SDataSource getDataSource(String key)
Find the data source with the given id.
Parameters:
key - The string id that identifies the data source.

 o getDataSource

 public static final SDataSource getDataSource(int id)
Find the data source with the given id.
Parameters:
id - The integer id that identifies the data source.

 o removeDataListener

 public final void removeDataListener(int key)

 o addDataListener

 public static final void addDataListener(Object dl)

 o getDataListener

 public static final SDataListener getDataListener(String key)

 o getDataListener

 public static final SDataListener getDataListener(int key)