|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--edu.davidson.tools.SApplet
Field Summary | |
edu.davidson.tools.SClock |
clock
|
java.util.Vector |
dataConnections
|
static java.util.Hashtable |
dataListeners
|
static java.util.Hashtable |
dataSources
|
edu.davidson.tools.BusyFlag |
lock
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
SApplet()
|
Method Summary | |
static void |
addDataListener(java.lang.Object dl)
|
static void |
addDataSource(java.lang.Object ds)
Add a data source to the list. |
void |
cleanupDataConnections()
Remove dataConnections if either the source or the listener no longer exist. |
void |
clearAllData()
Delete all the data that has been sent to the DataConnections. |
void |
clearData(int id)
Delete all the data that has been sent to the DataConnections. |
void |
deleteDataConnection(int id)
Break the data connection identified by the id. |
void |
deleteDataConnections()
Break all data connections for this applet. |
void |
destroy()
|
void |
forward()
Start clock. |
int |
getClockID()
Get the clock id for use as a data source. |
edu.davidson.tools.SDataConnection |
getDataConnectionFromDL(edu.davidson.tools.SDataListener dl)
Find the first data connection in the list that has a specific data listener. |
edu.davidson.tools.SDataConnection |
getDataConnectionFromDS(edu.davidson.tools.SDataSource ds)
Find the first data connection in the list that has a specific data source. |
java.lang.String |
getDataFromDS(int id)
Return the data as a string. |
static edu.davidson.tools.SDataListener |
getDataListener(int id)
|
static edu.davidson.tools.SDataListener |
getDataListener(java.lang.String key)
|
static edu.davidson.tools.SDataSource |
getDataSource(int id)
Find the data source with the given id. |
static edu.davidson.tools.SDataSource |
getDataSource(java.lang.String key)
Find the data source with the given key. |
int |
getID()
|
java.lang.Object |
getRunningID()
|
java.lang.String |
getSourceData(int id,
java.lang.String vStr)
Return a comma delimited list of the data source data. |
java.lang.String |
getSourceVariables(int id)
Return a comma delimited list of the data source variables. |
boolean |
isAutoRefresh()
Test to see if the clock is running. |
boolean |
isClockRunning()
Test to see if the clock is running. |
int |
makeDataConnection(int sourceID,
int listenerID,
int seriesID,
java.lang.String xStr,
java.lang.String yStr)
Have the applet make a new data connection. |
void |
pause()
Pause the clock. |
void |
removeDataListener(int key)
|
void |
removeDataSource(int id)
Remove the data source with the given id. |
void |
reset()
Reset the clock to time=0. |
void |
reverse()
Stop the clock. |
void |
setAutoRefresh(boolean ar)
Repaint whenevers the system parameters are changed. |
void |
setClockContinous()
Set the clock to run continously. |
void |
setClockCycle(double minTime,
double maxTime)
Set the clock to cycle between the minTime and maxTime. |
void |
setClockOneShot(double minTime,
double maxTime)
Set the clock to run from minTime to maxTime and stop. |
void |
setClockTime(double t)
Set the clock time. |
boolean |
setConnectionBlock(int id,
boolean block)
Block data from passing through the data connection. |
boolean |
setConnectionListener(int id)
Set the data listener for the data connection. |
boolean |
setConnectionSmoothing(int id,
int num)
Have the data connection smooth the data before it is sent to the data listener. |
boolean |
setConnectionSource(int id)
Set the data source for the data connection. |
boolean |
setConnectionStride(int id,
int num)
Have the data connection skip every num-1 data points. |
void |
setDefault()
Reset the clock to time=0. |
void |
setDt(double dt)
Set the time increment. |
void |
setFPS(double fps)
Set the frames per second. |
void |
setRunningID()
|
void |
setRunningID(java.lang.Object id)
|
void |
setTimeContinuous()
Set the time increment. |
void |
setTimeCycle(double maxTime)
Set the clock to cycle between the 0 and maxTime. |
void |
setTimeOneShot(double maxTime,
java.lang.String msg)
Set the clock to run from minTime to maxTime and stop. |
void |
startClock()
Start the clock |
void |
stepClock()
Step the clock by one tick, dt. |
void |
stepTime()
Step the clock by dt. |
void |
stepTimeBack()
Step the clock back by dt. |
void |
stepTimeForward()
Step the clock forward by dt. |
void |
stopClock()
Stop the clock |
void |
updateDataConnection(int id)
Have a single data source update its data connections. |
void |
updateDataConnections()
Have all data sources update their data connections. |
void |
useMasterClock()
Sets applet to use the master clock shared by all applets. |
Methods inherited from class java.applet.Applet |
getAccessibleContext,
getAppletContext,
getAppletInfo,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
init,
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,
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 |
Field Detail |
public static java.util.Hashtable dataSources
public static java.util.Hashtable dataListeners
public edu.davidson.tools.SClock clock
public edu.davidson.tools.BusyFlag lock
public java.util.Vector dataConnections
Constructor Detail |
public SApplet()
Method Detail |
public void destroy()
public int makeDataConnection(int sourceID, int listenerID, int seriesID, java.lang.String xStr, java.lang.String yStr)
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.public void clearAllData()
public void clearData(int id)
id
- int The hashCode id of the data source.public void updateDataConnection(int id)
id
- The integer id of the data source.public void updateDataConnections()
public void deleteDataConnections()
public void deleteDataConnection(int id)
id
- The data connection id.public edu.davidson.tools.SDataConnection getDataConnectionFromDS(edu.davidson.tools.SDataSource ds)
public java.lang.String getDataFromDS(int id)
public edu.davidson.tools.SDataConnection getDataConnectionFromDL(edu.davidson.tools.SDataListener dl)
public final void cleanupDataConnections()
public final java.lang.Object getRunningID()
public final void setRunningID(java.lang.Object id)
public final void setRunningID()
public final int getID()
public final boolean setConnectionSmoothing(int id, int num)
id
- int The id of of the data connection.num
- int The number of data points to smooth.public final boolean setConnectionStride(int id, int num)
public final boolean setConnectionBlock(int id, boolean block)
public final boolean setConnectionSource(int id)
public final boolean setConnectionListener(int id)
public void setAutoRefresh(boolean ar)
autoRefresh
- Automatic repaint?public void forward()
public void reverse()
public void pause()
public void reset()
public void setDefault()
public void setDt(double dt)
public void setFPS(double fps)
public void setTimeContinuous()
public final int getClockID()
public void stepClock()
public void stepTimeForward()
public void stepTimeBack()
public void stepTime()
public void useMasterClock()
public void setClockTime(double t)
t
- The clock time.public void setTimeOneShot(double maxTime, java.lang.String msg)
minTime
- The maximum time.maxTime
- The maximum time.public void setClockOneShot(double minTime, double maxTime)
minTime
- The maximum time.maxTime
- The maximum time.public void setClockContinous()
setClockOneShot(double, double)
,
setClockCycle(double, double)
public void setTimeCycle(double maxTime)
maxTime
- The maximum time.public void setClockCycle(double minTime, double maxTime)
minTime
- The maximum time.maxTime
- The maximum time.public void startClock()
public boolean isAutoRefresh()
public boolean isClockRunning()
public void stopClock()
public static final void addDataSource(java.lang.Object ds)
ds
- The data source object.public final void removeDataSource(int id)
id
- The integer id that identifies the data source.public static final edu.davidson.tools.SDataSource getDataSource(java.lang.String key)
key
- The string id that identifies the data source.public static final edu.davidson.tools.SDataSource getDataSource(int id)
id
- The integer id that identifies the data source.public java.lang.String getSourceVariables(int id)
id
- the integer identifier of the data source.public java.lang.String getSourceData(int id, java.lang.String vStr)
id
- the integer identifier of the data source.str
- the data source variable.public final void removeDataListener(int key)
public static final void addDataListener(java.lang.Object dl)
public static final edu.davidson.tools.SDataListener getDataListener(java.lang.String key)
public static final edu.davidson.tools.SDataListener getDataListener(int id)
|
Copyright Wolfgang Christian | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |