Class jotsa.JotsaAnimationApplet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jotsa.JotsaAnimationApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----jotsa.JotsaAnimationApplet

public class JotsaAnimationApplet
extends Applet
This is the main applet class for Jotsa. Applets extend this class.
Version:
0.886 Last modified August 17, 1997

Variable Index

 o current_level
 o fix_java_arc_bug
 o JotsaBackGC
 o JotsaBackGround
 o JotsaBackgroundImagelist
 o JotsaCanvases
 o JotsaClearBackGC
 o JotsaClearBackGround
 o JotsaDefaultCanvas
 o JotsaImagelist
 o JotsaLog
 o JotsaPopupWindows
 o JotsaScaledWindows
 o JotsaShowPopupWindows
 o JotsaShowScaledWindows
 o JotsaTempGC
 o JotsaTempimage
 o JotsaVersion
 o JotsaVersionDate
 o JotsaVersionMajor
 o JotsaVersionMinor
 o JotsaVtime
 o last_display_time
 o OBJECT_FINISHED_EVENT
 o scheduler
 o sizex
 o sizey

Constructor Index

 o JotsaAnimationApplet()

Method Index

 o action(Event, Object)
This method handles some default buttons.
 o display_code_name_change(String, String)
 o display_obsolete_code(String)
 o init()
The applet should execute super.init() to inialize the JOTSA data structures.
 o JotsaAddToVirtualTime(int)
Add the given number of milliseconds to the virtual time.
 o JotsaAllPopupsChosen()
This is called when all popups are chosen.
 o JotsaChangeParameters()
This is called when a JOTSA widget changes a parameter.
 o JotsaChangeParameters(int, Object)
 o JotsaClearVirtualTime()
This sets the virtual time to zero.
 o JotsaDebugTimers()
This is a debugging routine and is not supported.
 o JotsaDisplayCanvases()
This is called by the default paint method to display all JOTSA canvases.
 o JotsaDrawAll()
 o JotsaDrawAll(long)
This draws all objects fot the default canvas.
 o JotsaDrawAllClip(long)
Clipping is not supported at this time.
 o JotsaDrawAllScaledWindow(double, int, int, Graphics)
This is obsloete.
 o JotsaDrawBackground()
This is obsolete.
 o JotsaDrawImage(Graphics)
This is obsolete.
 o JotsaDrawScaledBackground(double, int, int, Graphics)
This is obsolete.
 o JotsaForceRedisplay()
Force a redisplay of the screen as soon as possible.
 o JotsaForceRedisplay(int)
Force a redisplay of the screen as soon as possible.
 o JotsaGetObject(int)
Return the object from the default canvas with the given key.
 o JotsaGetObjectAt(int)
Return the object from the default canvas which is at the given position in the list of objects to be displayed.
 o JotsaGetRemainingTime(int)
Return the time remaining on the timer with the given key
or -1 if there is no active timer with this key.
 o JotsaGetVirtualTime()
Return the current virtual time.
 o JotsaGetVirtualTime(long)
Return the virtual time corresponding to the given current time.
 o JotsaHandleCanvasAction(Event, Object)
This method is currently not supported.
 o JotsaHandleCanvasAction(Event, Object, JotsaCanvas)
This method is currently not supported.
 o JotsaHandleCanvasEvent(Event)
This is called by a JotsaCanvas when an event occurs.
 o JotsaHandleCanvasEvent(Event, JotsaCanvas)
This is called by a JotsaCanvas when an event occurs.
 o JotsaInhibitDisplay()
 o JotsaInhibitDisplayOff()
 o JotsaInhibitDisplayTest()
 o JotsaInitImages()
Initialize the JOTSA images for the default canvas.
 o JotsaInsertCanvas(JotsaCanvas)
Insert the canvas into the list of canvases to be displayed.
 o JotsaInsertIntoBackground(JotsaAnimationObject)
 o JotsaInsertObject(JotsaAnimationObject)
Insert the object in the list of objects for the JotsaDefaultCanvas.
 o JotsaInsertObject(JotsaAnimationObject, JotsaCanvas)
Insert the object in the last of objects for the given canvas.
 o JotsaLastDisplayTime()
Return the virtual time of the last display.
 o JotsaMakePopupWindow(String, int, int)
Make a new popup window.
 o JotsaMakePopupWindow(String, int, int, boolean)
Make a new popup window.
 o JotsaMakeScaledWindow(String, int, int)
This method is obsolete and will be replaced.
 o JotsaMoveAllIntoBackground()
 o JotsaMoveIntoBackground(JotsaAnimationObject)
 o JotsaMovieSpecialModeClear()
 o JotsaMovieSpecialModeGet()
 o JotsaMovieSpecialModeSet()
 o JotsaNextLevel()
Return the level number of the next object.
 o JotsaNotifyIfNecessary()
Notify all threads of pending notifications
 o JotsaNumObjects()
Return the number of objects in the list for the default canvas.
 o JotsaPaintCanvas(Graphics)
Allow the overriding of the paint method for the default canvas.
 o JotsaPaintCanvas(Graphics, JotsaCanvas)
Allow the overriding of the paint method for any canvas.
 o JotsaPaintEnd()
This is called at the end of the default paint method after all other drawing methods have been called.
 o JotsaPaintLocal(long)
This is called by the default paint method before drawing any of the canvases.
 o JotsaPaintLocal(long, JotsaCanvas)
This is called by the default paint method of each canvas before drawing and objects.
 o JotsaPaintStart()
This is called at the start of the default paint method before any other drawing methods have been called.
 o JotsaPaintTime()
Return the virtual time that the last paint was entered.
 o JotsaPause()
Do not automatically restart time when the browser revisits this page.
 o JotsaPopupChosen(JotsaPopupWindow)
This is called when a particular popup is chosen.
 o JotsaRecreateBackground()
This is called to recreate the backgound image of the default canvas.
 o JotsaRemoveAllObjects()
Remove all objects corresponding to the default canvas.
 o JotsaRemoveCanvas(JotsaCanvas)
Remove the canvas from the list of canvases to be displayed.
 o JotsaRemoveObject(int)
Remove a particular object from the list of objects displayed for the default canvas.
 o JotsaRemoveObject(JotsaAnimationObject)
Remove a particular object from the list of objects displayed for the default canvas.
 o JotsaRemovePopupWindow(String)
Remove a given popup window.
 o JotsaRemoveScaledWindow(String)
Remove a given scaled window from the default canvas.
 o JotsaRemoveTimerGivenKey(int)
Remove a given timer.
 o JotsaResetAllToFinal()
 o JotsaRestartTime()
Restart the virtual time that was stopped with JotsaStopTime.
 o JotsaSetBackground(Color)
Set the background color of the default canvas.
 o JotsaSetBackgroundSkip(int)
 o JotsaSetDefaultSleepTime(int)
Set the default sleep time in milliseconds.
 o JotsaSetDisplayCodeNameChange(boolean)
 o JotsaSetDisplayCodeNameChangeOne(boolean)
 o JotsaSetDisplayObsolete(boolean)
 o JotsaSetDisplayObsoleteOne(boolean)
 o JotsaSetFixJavaArcBug(boolean)
This method has not yet been implemented.
 o JotsaSetMovieFrameTime(double)
Set to repaint the screen at a fixed rate independent of the motion of objects.
 o JotsaSetRate(double)
Set the rate at which virtual time moves.
 o JotsaSetTimeout(int, int, JotsaWaitingThread)
Set a timer to notify a thread at a later time.
 o JotsaSetTimeout(int, int, Object, JotsaWaitingThread)
Set a timer to notify a thread at a later time.
 o JotsaSetWakeupDelay(int)
This is the smallest time interval that can be handled by the virutal time.
 o JotsaShowNames()
 o JotsaSpecialDisplayModeClear()
 o JotsaSpecialDisplayModeGet()
 o JotsaSpecialDisplayModeSet()
 o JotsaStartLogger(String, String)
 o JotsaStopTime()
Stop the virtual time.
 o JotsaTerminateAll()
Terminate all objects associated with the default canvas.
 o JotsaUpdateAll(long)
 o JotsaUpdateSleep()
 o JotsaWriteBackgroundLine(int, int, int, int, Color)
Draw a line in the background of the default canvas.
 o JotsaWriteBackgroundString(String, int, int, Color)
Draw a string in the background of the default canvas.
 o paint(Graphics)
This is the default paint method>
 o repaint_clip()
This is currently not supported.
 o repaint_full()
This is currently not supported.
 o ShowObjects()
 o ShowTimingStats()
 o ShowTimingStats(int)
 o start()
This is the start method for the applet.
 o stop()
This is the stop method for the applet.
 o update(Graphics)
The default update just calls paint without redrawing the background.

Variables

 o JotsaBackGround
  protected Image JotsaBackGround
 o JotsaClearBackGround
  protected Image JotsaClearBackGround
 o JotsaBackGC
  protected Graphics JotsaBackGC
 o JotsaClearBackGC
  protected Graphics JotsaClearBackGC
 o JotsaTempimage
  public Image JotsaTempimage
 o JotsaTempGC
  protected Graphics JotsaTempGC
 o JotsaVersion
  protected final String JotsaVersion
 o JotsaVtime
  protected JotsaVirtualTime JotsaVtime
 o JotsaVersionMajor
  public final int JotsaVersionMajor
 o JotsaVersionMinor
  public final int JotsaVersionMinor
 o JotsaVersionDate
  public final String JotsaVersionDate
 o JotsaScaledWindows
  public Vector JotsaScaledWindows
 o JotsaPopupWindows
  public Vector JotsaPopupWindows
 o JotsaCanvases
  public Vector JotsaCanvases
 o last_display_time
  public long last_display_time
 o sizex
  public int sizex
 o sizey
  public int sizey
 o JotsaShowScaledWindows
  public Choice JotsaShowScaledWindows
 o JotsaShowPopupWindows
  public Choice JotsaShowPopupWindows
 o current_level
  public int current_level
 o OBJECT_FINISHED_EVENT
  public int OBJECT_FINISHED_EVENT
 o JotsaLog
  public JotsaLogger JotsaLog
 o fix_java_arc_bug
  protected boolean fix_java_arc_bug
 o scheduler
  protected JotsaScheduler scheduler
 o JotsaImagelist
  protected JotsaAnimationObjectList JotsaImagelist
 o JotsaBackgroundImagelist
  protected JotsaAnimationObjectList JotsaBackgroundImagelist
 o JotsaDefaultCanvas
  public JotsaCanvas JotsaDefaultCanvas

Constructors

 o JotsaAnimationApplet
  public JotsaAnimationApplet()

Methods

 o action
  public boolean action(Event e,
                        Object arg)
This method handles some default buttons.
Overrides:
action in class Component
 o init
  public void init()
The applet should execute super.init() to inialize the JOTSA data structures.
Overrides:
init in class Applet
 o JotsaAddToVirtualTime
  public void JotsaAddToVirtualTime(int millisec)
Add the given number of milliseconds to the virtual time.
Parameters:
millsec - The number of milliseconds to add to the virtual time
 o JotsaAllPopupsChosen
  public void JotsaAllPopupsChosen()
This is called when all popups are chosen.
It should be overridden if the applet want to take some action when the occurs.
 o JotsaChangeParameters
  public void JotsaChangeParameters()
This is called when a JOTSA widget changes a parameter.
It should be overridden if the applet must take some action when this happens.
 o JotsaChangeParameters
  public void JotsaChangeParameters(int key,
                                    Object obj)
 o JotsaClearVirtualTime
  public void JotsaClearVirtualTime()
This sets the virtual time to zero.
 o JotsaDebugTimers
  public void JotsaDebugTimers()
This is a debugging routine and is not supported.
 o JotsaDisplayCanvases
  public void JotsaDisplayCanvases()
This is called by the default paint method to display all JOTSA canvases.
 o JotsaDrawAll
  public void JotsaDrawAll(long timenow)
This draws all objects fot the default canvas.
It is obsolete and JotsaDisplayCanvases should be used instead.
See Also:
JotsaDisplayCanvases
 o JotsaDrawAllClip
  public void JotsaDrawAllClip(long timenow)
Clipping is not supported at this time.
 o JotsaDrawAllScaledWindow
  public void JotsaDrawAllScaledWindow(double scale,
                                       int xoff,
                                       int yoff,
                                       Graphics g)
This is obsloete.
See Also:
JotsaDisplayCanvases
 o JotsaDrawBackground
  public void JotsaDrawBackground()
This is obsolete.
See Also:
JotsaDisplayCanvases
 o JotsaDrawImage
  public void JotsaDrawImage(Graphics g)
This is obsolete.
See Also:
JotsaDisplayCanvases
 o JotsaDrawScaledBackground
  public void JotsaDrawScaledBackground(double scale,
                                        int xoff,
                                        int yoff,
                                        Graphics g)
This is obsolete.
See Also:
JotsaDisplayCanvases
 o JotsaForceRedisplay
  public void JotsaForceRedisplay()
Force a redisplay of the screen as soon as possible.
 o JotsaForceRedisplay
  public void JotsaForceRedisplay(int n)
Force a redisplay of the screen as soon as possible.
 o JotsaGetObject
  public JotsaAnimationObject JotsaGetObject(int key)
Return the object from the default canvas with the given key.
Parameters:
key - The key of the object to return
Returns:
The object with the given key or null is none exists.
 o JotsaGetObjectAt
  public JotsaAnimationObject JotsaGetObjectAt(int which)
Return the object from the default canvas which is at the given position in the list of objects to be displayed.
Parameters:
i - The index of the object to be returned.
Returns:
The object from the default canvas
 o JotsaGetRemainingTime
  public int JotsaGetRemainingTime(int key)
Return the time remaining on the timer with the given key
or -1 if there is no active timer with this key.
Parameters:
key - The key for the timer.
Returns:
The virtual time remaining in milliseconds
 o JotsaGetVirtualTime
  public long JotsaGetVirtualTime()
Return the current virtual time.
Returns:
The current virtual time in milliseconds
 o JotsaGetVirtualTime
  public long JotsaGetVirtualTime(long n)
Return the virtual time corresponding to the given current time.
Returns:
The current virtual time in milliseconds
 o JotsaHandleCanvasAction
  public boolean JotsaHandleCanvasAction(Event e,
                                         Object arg)
This method is currently not supported.
 o JotsaHandleCanvasAction
  public boolean JotsaHandleCanvasAction(Event e,
                                         Object arg,
                                         JotsaCanvas can)
This method is currently not supported.
 o JotsaHandleCanvasEvent
  public boolean JotsaHandleCanvasEvent(Event e)
This is called by a JotsaCanvas when an event occurs.
If it returns false (the default) then
JotsaHandleCanvasEvent(Event e, JotsaCanvas can) is called.
Override this if you are only using the default canvas and you need to capture events.
Parameters:
e - The event from HandleEvent
Returns:
true if this handled the event and false otherwise
 o JotsaHandleCanvasEvent
  public boolean JotsaHandleCanvasEvent(Event e,
                                        JotsaCanvas can)
This is called by a JotsaCanvas when an event occurs.
 o JotsaInitImages
  public void JotsaInitImages()
Initialize the JOTSA images for the default canvas.
This should be called after a layout containing the JotsaDefaultCanvas has been set up and validated.
See Also:
validate
 o JotsaInsertCanvas
  public void JotsaInsertCanvas(JotsaCanvas can)
Insert the canvas into the list of canvases to be displayed.
The JotsaDefaultCanvas is automatically inserted into this list by init.
Parameters:
can - The canvas to insert
See Also:
JotsaRemoveCanvas
 o JotsaInsertIntoBackground
  public void JotsaInsertIntoBackground(JotsaAnimationObject obj)
 o JotsaInsertObject
  public void JotsaInsertObject(JotsaAnimationObject obj)
Insert the object in the list of objects for the JotsaDefaultCanvas.
Parameters:
obj - The object to insert
 o JotsaInsertObject
  public void JotsaInsertObject(JotsaAnimationObject obj,
                                JotsaCanvas can)
Insert the object in the last of objects for the given canvas.
Parameters:
obj - The object to insert
can - The canvas to insert the object in
 o JotsaLastDisplayTime
  public long JotsaLastDisplayTime()
Return the virtual time of the last display.
Returns:
The virtual time (in milliseconds) of the last display
 o JotsaMakePopupWindow
  public JotsaPopupWindow JotsaMakePopupWindow(String str,
                                               int xsize,
                                               int ysize)
Make a new popup window.
Parameters:
str - The name of the window
xsize - The number of pixels in the x-dimension for the window
ysize - The number of pixels in the y-dimension for the window
Returns:
The new popup window
 o JotsaMakePopupWindow
  public JotsaPopupWindow JotsaMakePopupWindow(String str,
                                               int xsize,
                                               int ysize,
                                               boolean show)
Make a new popup window.
Parameters:
str - The name of the window
xsize - The number of pixels in the x-dimension for the window
ysize - The number of pixels in the y-dimension for the window
show - If true, the window is shown, otherwise, it is hidden
Returns:
The new popup window
 o JotsaMakeScaledWindow
  public JotsaScaledWindow JotsaMakeScaledWindow(String str,
                                                 int xsize,
                                                 int ysize)
This method is obsolete and will be replaced.
 o JotsaNextLevel
  public int JotsaNextLevel()
Return the level number of the next object. Each time this is called it returns a new level number.
Returns:
The next level number to use
 o JotsaNotifyIfNecessary
  public void JotsaNotifyIfNecessary()
Notify all threads of pending notifications
 o JotsaNumObjects
  public int JotsaNumObjects()
Return the number of objects in the list for the default canvas.
Returns:
The number of objects for the default canvas
 o JotsaPaintCanvas
  public boolean JotsaPaintCanvas(Graphics g)
Allow the overriding of the paint method for the default canvas.
Each canvas calls JotsaPaintCanvas(Graphics g, JotsaCanvas can) in its paint method. If this returns false the default paint mehtod is used. If it returns true no other action is taken by the canvas's paint method.
By default, JotsaPaintCanvas(Graphics g, JotsaCanvas can) calls JotsaPaintCanvas(Graphics g) and returns its return value, which by default is false.
If JotsaPaintCanvas(Graphics g) is overridden and returns true, the overriding method must handle all painting in all canvases.
Since no information is provided as to the canvas, it is useful only when the default canvas is the only one used.
Parameters:
g - The graphics context passed to paint
Returns:
false, by default, means that the canvas handles its onwn paint
true if the canvas is not to handle its own paint.
 o JotsaPaintCanvas
  public boolean JotsaPaintCanvas(Graphics g,
                                  JotsaCanvas can)
Allow the overriding of the paint method for any canvas.
Each canvas calls JotsaPaintCanvas(Graphics g, JotsaCanvas can) in its paint method. If this returns false the default paint mehtod is used. If it returns true no other action is taken by the canvas's paint method.
By default, JotsaPaintCanvas(Graphics g, JotsaCanvas can) calls JotsaPaintCanvas(Graphics g) and returns its return value, which by default is false.
Overriding JotsaPaintCanvas(Graphics g, JotsaCanvas can) allows the applet to tkae some action either before or instead of the paint method used by a canvas.
Parameters:
g - The graphics context passed to paint
can - The canvas whose paint method was entered
Returns:
false, by default, means that the canvas handles its onwn paint
true if the canvas is not to handle its own paint.
 o JotsaPaintEnd
  public void JotsaPaintEnd()
This is called at the end of the default paint method after all other drawing methods have been called.
 o JotsaPaintLocal
  public void JotsaPaintLocal(long ldt)
This is called by the default paint method before drawing any of the canvases.
By default, it does nothing. It can be overridden tp customize paint.
Parameters:
ldt - The virtual time of the last display
 o JotsaPaintLocal
  public void JotsaPaintLocal(long ldt,
                              JotsaCanvas can)
This is called by the default paint method of each canvas before drawing and objects. By default, it does nothing. It can be overridden tp customize paint.
Parameters:
ldt - The virtual time of the last display
can - The canves that called this function
 o JotsaPaintStart
  public void JotsaPaintStart()
This is called at the start of the default paint method before any other drawing methods have been called.
 o JotsaPaintTime
  public long JotsaPaintTime()
Return the virtual time that the last paint was entered. return Last virtual time that paint was called
 o JotsaPause
  public void JotsaPause()
Do not automatically restart time when the browser revisits this page.
 o JotsaPopupChosen
  public void JotsaPopupChosen(JotsaPopupWindow win)
This is called when a particular popup is chosen.
It should be overridden if the applet want to take some action when the occurs.
Parameters:
win - The popup window that was chosen
 o JotsaRecreateBackground
  public void JotsaRecreateBackground()
This is called to recreate the backgound image of the default canvas.
For efficiency, the objects in the background are not redrawn each time.
Instead, an image containing all background objects is made and this image is drawn as the background.
Use JotsaRecreateBackground to remake this background image when a background object changes.
 o JotsaRemoveAllObjects
  public void JotsaRemoveAllObjects()
Remove all objects corresponding to the default canvas.
Background objects are not removed.
See Also:
JotsaRemoveObject
 o JotsaRemoveCanvas
  public void JotsaRemoveCanvas(JotsaCanvas can)
Remove the canvas from the list of canvases to be displayed.
Parameters:
can - The canvas to remove
See Also:
JotsaInsertCanvas
 o JotsaRemoveObject
  public void JotsaRemoveObject(int key)
Remove a particular object from the list of objects displayed for the default canvas.
Parameters:
key - The key of the object to be removed.
See Also:
JotsaRemoveAllObjects
 o JotsaRemoveObject
  public void JotsaRemoveObject(JotsaAnimationObject obj)
Remove a particular object from the list of objects displayed for the default canvas.
Parameters:
obj - The object to be removed.
See Also:
JotsaRemoveAllObjects
 o JotsaRemovePopupWindow
  public void JotsaRemovePopupWindow(String str)
Remove a given popup window.
Parameters:
str - The name of the popup window to remove
See Also:
JotsaMakePopupWindow
 o JotsaRemoveScaledWindow
  public void JotsaRemoveScaledWindow(String str)
Remove a given scaled window from the default canvas.
Parameters:
str - The name of the scaled window to remove
See Also:
JotsaMakeScaledWindow
 o JotsaRemoveTimerGivenKey
  public void JotsaRemoveTimerGivenKey(int key)
Remove a given timer.
Timers are created with JotsaSetTimeout
See Also:
JotsaSetTimeout
 o JotsaRestartTime
  public void JotsaRestartTime()
Restart the virtual time that was stopped with JotsaStopTime.
See Also:
JotsaStopTime
 o JotsaSetBackground
  public void JotsaSetBackground(Color c)
Set the background color of the default canvas.
Parameters:
c - The color for the background of the default canvas
 o JotsaSetDefaultSleepTime
  public void JotsaSetDefaultSleepTime(int millisec)
Set the default sleep time in milliseconds.
This is the time between redisplays when no object is moving
Parameters:
millsec - The number of milliseconds to sleep
 o JotsaSetMovieFrameTime
  public void JotsaSetMovieFrameTime(double frame_time)
Set to repaint the screen at a fixed rate independent of the motion of objects.
The mode is turned off by setting this time to 0.0.
Parameters:
frame_time - The time between redisplays
 o JotsaMovieSpecialModeSet
  public void JotsaMovieSpecialModeSet()
 o JotsaMovieSpecialModeClear
  public void JotsaMovieSpecialModeClear()
 o JotsaMovieSpecialModeGet
  public boolean JotsaMovieSpecialModeGet()
 o JotsaSpecialDisplayModeSet
  public void JotsaSpecialDisplayModeSet()
 o JotsaSpecialDisplayModeClear
  public void JotsaSpecialDisplayModeClear()
 o JotsaSpecialDisplayModeGet
  public int JotsaSpecialDisplayModeGet()
 o JotsaSetRate
  public void JotsaSetRate(double r)
Set the rate at which virtual time moves.
If this is 1.0, virtual time moves at the same rate as real time.
If this value is greater than 1, virtual time moves faster than real time.
If this value is smaller than 1, virtual time moves slower than real time.
Parameters:
r - New virtual time rate
See Also:
JotsaStopTime
 o JotsaSetTimeout
  public void JotsaSetTimeout(int timeout,
                              int key,
                              JotsaWaitingThread w)
Set a timer to notify a thread at a later time.
Parameters:
timout - The number of milliseconds of virtual time until the timeout occurs
key - A key for use in remooving this timer
w - The thread to notify when the timer expires
 o JotsaSetTimeout
  public void JotsaSetTimeout(int timeout,
                              int key,
                              Object obj,
                              JotsaWaitingThread w)
Set a timer to notify a thread at a later time.
Parameters:
timout - The number of milliseconds of virtual time until the timeout occurs
key - A key for use in remooving this timer
w - The thread to notify when the timer expires
obj - Additional information to pass to the waiting thread
 o JotsaSetWakeupDelay
  public void JotsaSetWakeupDelay(int millisec)
This is the smallest time interval that can be handled by the virutal time.
Parameters:
millisec - The number of milliseconds for the virtual timer to sleep
 o JotsaStopTime
  public void JotsaStopTime()
Stop the virtual time.
All all objects will stop moving.
See Also:
JotsaRestartTime
 o JotsaTerminateAll
  public void JotsaTerminateAll()
Terminate all objects associated with the default canvas.
This causes them to notify their waiting threads.
 o JotsaWriteBackgroundLine
  public JotsaAnimationObject JotsaWriteBackgroundLine(int x1,
                                                       int y1,
                                                       int x2,
                                                       int y2,
                                                       Color C)
Draw a line in the background of the default canvas.
Parameters:
x1 - The x-coordinate of the first endpoint of the line
y1 - The y-coordinate of the first endpoint of the line
x2 - The x-coordinate of the second endpoint of the line
y2 - The y-coordinate of the second endpoint of the line
C - The color of the line
See Also:
JotsaWriteBackgroundString
 o JotsaWriteBackgroundString
  public JotsaAnimationObject JotsaWriteBackgroundString(String str,
                                                         int x,
                                                         int y,
                                                         Color C)
Draw a string in the background of the default canvas.
Parameters:
str - The string to draw
x - The x-coordinate of the lower left corner of the string
y - The y-coordinate of the lower left corner of the string
C - The color of the string
 o paint
  public void paint(Graphics g)
This is the default paint method>
Parameters:
g - The graphics context for painting the screen
Overrides:
paint in class Component
 o repaint_clip
  public void repaint_clip()
This is currently not supported.
 o repaint_full
  public void repaint_full()
This is currently not supported.
 o JotsaUpdateAll
  public void JotsaUpdateAll(long timenow)
 o JotsaUpdateSleep
  public int JotsaUpdateSleep()
 o JotsaDrawAll
  public void JotsaDrawAll()
 o start
  public void start()
This is the start method for the applet.
It restarts the master thread used for timing.
Overrides:
start in class Applet
 o stop
  public void stop()
This is the stop method for the applet.
It stops the time and kills the master thread used for timing.
Overrides:
stop in class Applet
 o update
  public void update(Graphics g)
The default update just calls paint without redrawing the background.
Parameters:
g - The graphics context for painting the screen.
Overrides:
update in class Component
 o ShowTimingStats
  public void ShowTimingStats()
 o ShowTimingStats
  public void ShowTimingStats(int n)
 o ShowObjects
  public void ShowObjects()
 o JotsaResetAllToFinal
  public void JotsaResetAllToFinal()
 o JotsaMoveIntoBackground
  public void JotsaMoveIntoBackground(JotsaAnimationObject obj)
 o JotsaMoveAllIntoBackground
  public void JotsaMoveAllIntoBackground()
 o JotsaShowNames
  public void JotsaShowNames()
 o JotsaInhibitDisplay
  public void JotsaInhibitDisplay()
 o JotsaInhibitDisplayOff
  public void JotsaInhibitDisplayOff()
 o JotsaSetBackgroundSkip
  public void JotsaSetBackgroundSkip(int n)
 o JotsaInhibitDisplayTest
  public boolean JotsaInhibitDisplayTest()
 o JotsaSetDisplayObsolete
  public void JotsaSetDisplayObsolete(boolean flg)
 o JotsaSetDisplayObsoleteOne
  public void JotsaSetDisplayObsoleteOne(boolean flg)
 o JotsaSetDisplayCodeNameChange
  public void JotsaSetDisplayCodeNameChange(boolean flg)
 o JotsaSetDisplayCodeNameChangeOne
  public void JotsaSetDisplayCodeNameChangeOne(boolean flg)
 o JotsaSetFixJavaArcBug
  public void JotsaSetFixJavaArcBug(boolean flg)
This method has not yet been implemented.
 o display_obsolete_code
  protected void display_obsolete_code(String str)
 o display_code_name_change
  protected void display_code_name_change(String str1,
                                          String str2)
 o JotsaStartLogger
  public void JotsaStartLogger(String name,
                               String fn)

All Packages  Class Hierarchy  This Package  Previous  Next  Index