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
-
current_level
-
-
fix_java_arc_bug
-
-
JotsaBackGC
-
-
JotsaBackGround
-
-
JotsaBackgroundImagelist
-
-
JotsaCanvases
-
-
JotsaClearBackGC
-
-
JotsaClearBackGround
-
-
JotsaDefaultCanvas
-
-
JotsaImagelist
-
-
JotsaLog
-
-
JotsaPopupWindows
-
-
JotsaScaledWindows
-
-
JotsaShowPopupWindows
-
-
JotsaShowScaledWindows
-
-
JotsaTempGC
-
-
JotsaTempimage
-
-
JotsaVersion
-
-
JotsaVersionDate
-
-
JotsaVersionMajor
-
-
JotsaVersionMinor
-
-
JotsaVtime
-
-
last_display_time
-
-
OBJECT_FINISHED_EVENT
-
-
scheduler
-
-
sizex
-
-
sizey
-
-
JotsaAnimationApplet()
-
-
action(Event, Object)
- This method handles some default buttons.
-
display_code_name_change(String, String)
-
-
display_obsolete_code(String)
-
-
init()
- The applet should execute super.init() to inialize
the JOTSA data structures.
-
JotsaAddToVirtualTime(int)
- Add the given number of milliseconds to the virtual time.
-
JotsaAllPopupsChosen()
- This is called when all popups are chosen.
-
JotsaChangeParameters()
- This is called when a JOTSA widget changes a parameter.
-
JotsaChangeParameters(int, Object)
-
-
JotsaClearVirtualTime()
- This sets the virtual time to zero.
-
JotsaDebugTimers()
- This is a debugging routine and is not supported.
-
JotsaDisplayCanvases()
- This is called by the default paint method to display all JOTSA canvases.
-
JotsaDrawAll()
-
-
JotsaDrawAll(long)
- This draws all objects fot the default canvas.
-
JotsaDrawAllClip(long)
- Clipping is not supported at this time.
-
JotsaDrawAllScaledWindow(double, int, int, Graphics)
- This is obsloete.
-
JotsaDrawBackground()
- This is obsolete.
-
JotsaDrawImage(Graphics)
- This is obsolete.
-
JotsaDrawScaledBackground(double, int, int, Graphics)
- This is obsolete.
-
JotsaForceRedisplay()
- Force a redisplay of the screen as soon as possible.
-
JotsaForceRedisplay(int)
- Force a redisplay of the screen as soon as possible.
-
JotsaGetObject(int)
- Return the object from the default canvas with the given key.
-
JotsaGetObjectAt(int)
- Return the object from the default canvas which is at the given
position in the list of objects to be displayed.
-
JotsaGetRemainingTime(int)
- Return the time remaining on the timer with the given key
or -1 if there is no active timer with this key.
-
JotsaGetVirtualTime()
- Return the current virtual time.
-
JotsaGetVirtualTime(long)
- Return the virtual time corresponding to the given current time.
-
JotsaHandleCanvasAction(Event, Object)
- This method is currently not supported.
-
JotsaHandleCanvasAction(Event, Object, JotsaCanvas)
- This method is currently not supported.
-
JotsaHandleCanvasEvent(Event)
- This is called by a JotsaCanvas when an event occurs.
-
JotsaHandleCanvasEvent(Event, JotsaCanvas)
- This is called by a JotsaCanvas when an event occurs.
-
JotsaInhibitDisplay()
-
-
JotsaInhibitDisplayOff()
-
-
JotsaInhibitDisplayTest()
-
-
JotsaInitImages()
- Initialize the JOTSA images for the default canvas.
-
JotsaInsertCanvas(JotsaCanvas)
- Insert the canvas into the list of canvases to be displayed.
-
JotsaInsertIntoBackground(JotsaAnimationObject)
-
-
JotsaInsertObject(JotsaAnimationObject)
- Insert the object in the list of objects for the
JotsaDefaultCanvas.
-
JotsaInsertObject(JotsaAnimationObject, JotsaCanvas)
- Insert the object in the last of objects for the given canvas.
-
JotsaLastDisplayTime()
- Return the virtual time of the last display.
-
JotsaMakePopupWindow(String, int, int)
- Make a new popup window.
-
JotsaMakePopupWindow(String, int, int, boolean)
- Make a new popup window.
-
JotsaMakeScaledWindow(String, int, int)
- This method is obsolete and will be replaced.
-
JotsaMoveAllIntoBackground()
-
-
JotsaMoveIntoBackground(JotsaAnimationObject)
-
-
JotsaMovieSpecialModeClear()
-
-
JotsaMovieSpecialModeGet()
-
-
JotsaMovieSpecialModeSet()
-
-
JotsaNextLevel()
- Return the level number of the next object.
-
JotsaNotifyIfNecessary()
- Notify all threads of pending notifications
-
JotsaNumObjects()
- Return the number of objects in the list for the default canvas.
-
JotsaPaintCanvas(Graphics)
- Allow the overriding of the paint method for the default canvas.
-
JotsaPaintCanvas(Graphics, JotsaCanvas)
- Allow the overriding of the paint method for any canvas.
-
JotsaPaintEnd()
- This is called at the end of the default paint method after all
other drawing methods have been called.
-
JotsaPaintLocal(long)
- This is called by the default paint method before drawing any of the
canvases.
-
JotsaPaintLocal(long, JotsaCanvas)
- This is called by the default paint method of each canvas before drawing
and objects.
-
JotsaPaintStart()
- This is called at the start of the default paint method before any
other drawing methods have been called.
-
JotsaPaintTime()
- Return the virtual time that the last paint was entered.
-
JotsaPause()
- Do not automatically restart time when the browser revisits this page.
-
JotsaPopupChosen(JotsaPopupWindow)
- This is called when a particular popup is chosen.
-
JotsaRecreateBackground()
- This is called to recreate the backgound image of the default canvas.
-
JotsaRemoveAllObjects()
- Remove all objects corresponding to the default canvas.
-
JotsaRemoveCanvas(JotsaCanvas)
- Remove the canvas from the list of canvases to be displayed.
-
JotsaRemoveObject(int)
- Remove a particular object from the list of objects displayed for
the default canvas.
-
JotsaRemoveObject(JotsaAnimationObject)
- Remove a particular object from the list of objects displayed for
the default canvas.
-
JotsaRemovePopupWindow(String)
- Remove a given popup window.
-
JotsaRemoveScaledWindow(String)
- Remove a given scaled window from the default canvas.
-
JotsaRemoveTimerGivenKey(int)
- Remove a given timer.
-
JotsaResetAllToFinal()
-
-
JotsaRestartTime()
- Restart the virtual time that was stopped with JotsaStopTime.
-
JotsaSetBackground(Color)
- Set the background color of the default canvas.
-
JotsaSetBackgroundSkip(int)
-
-
JotsaSetDefaultSleepTime(int)
- Set the default sleep time in milliseconds.
-
JotsaSetDisplayCodeNameChange(boolean)
-
-
JotsaSetDisplayCodeNameChangeOne(boolean)
-
-
JotsaSetDisplayObsolete(boolean)
-
-
JotsaSetDisplayObsoleteOne(boolean)
-
-
JotsaSetFixJavaArcBug(boolean)
- This method has not yet been implemented.
-
JotsaSetMovieFrameTime(double)
- Set to repaint the screen at a fixed rate independent of the motion of
objects.
-
JotsaSetRate(double)
- Set the rate at which virtual time moves.
-
JotsaSetTimeout(int, int, JotsaWaitingThread)
- Set a timer to notify a thread at a later time.
-
JotsaSetTimeout(int, int, Object, JotsaWaitingThread)
- Set a timer to notify a thread at a later time.
-
JotsaSetWakeupDelay(int)
- This is the smallest time interval that can be handled by the virutal time.
-
JotsaShowNames()
-
-
JotsaSpecialDisplayModeClear()
-
-
JotsaSpecialDisplayModeGet()
-
-
JotsaSpecialDisplayModeSet()
-
-
JotsaStartLogger(String, String)
-
-
JotsaStopTime()
- Stop the virtual time.
-
JotsaTerminateAll()
- Terminate all objects associated with the default canvas.
-
JotsaUpdateAll(long)
-
-
JotsaUpdateSleep()
-
-
JotsaWriteBackgroundLine(int, int, int, int, Color)
- Draw a line in the background of the default canvas.
-
JotsaWriteBackgroundString(String, int, int, Color)
- Draw a string in the background of the default canvas.
-
paint(Graphics)
- This is the default paint method>
-
repaint_clip()
- This is currently not supported.
-
repaint_full()
- This is currently not supported.
-
ShowObjects()
-
-
ShowTimingStats()
-
-
ShowTimingStats(int)
-
-
start()
- This is the start method for the applet.
-
stop()
- This is the stop method for the applet.
-
update(Graphics)
- The default update just calls paint without redrawing the background.
JotsaBackGround
protected Image JotsaBackGround
JotsaClearBackGround
protected Image JotsaClearBackGround
JotsaBackGC
protected Graphics JotsaBackGC
JotsaClearBackGC
protected Graphics JotsaClearBackGC
JotsaTempimage
public Image JotsaTempimage
JotsaTempGC
protected Graphics JotsaTempGC
JotsaVersion
protected final String JotsaVersion
JotsaVtime
protected JotsaVirtualTime JotsaVtime
JotsaVersionMajor
public final int JotsaVersionMajor
JotsaVersionMinor
public final int JotsaVersionMinor
JotsaVersionDate
public final String JotsaVersionDate
JotsaScaledWindows
public Vector JotsaScaledWindows
JotsaPopupWindows
public Vector JotsaPopupWindows
JotsaCanvases
public Vector JotsaCanvases
last_display_time
public long last_display_time
sizex
public int sizex
sizey
public int sizey
JotsaShowScaledWindows
public Choice JotsaShowScaledWindows
JotsaShowPopupWindows
public Choice JotsaShowPopupWindows
current_level
public int current_level
OBJECT_FINISHED_EVENT
public int OBJECT_FINISHED_EVENT
JotsaLog
public JotsaLogger JotsaLog
fix_java_arc_bug
protected boolean fix_java_arc_bug
scheduler
protected JotsaScheduler scheduler
JotsaImagelist
protected JotsaAnimationObjectList JotsaImagelist
JotsaBackgroundImagelist
protected JotsaAnimationObjectList JotsaBackgroundImagelist
JotsaDefaultCanvas
public JotsaCanvas JotsaDefaultCanvas
JotsaAnimationApplet
public JotsaAnimationApplet()
action
public boolean action(Event e,
Object arg)
- This method handles some default buttons.
- Overrides:
- action in class Component
init
public void init()
- The applet should execute super.init() to inialize
the JOTSA data structures.
- Overrides:
- init in class Applet
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
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.
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.
JotsaChangeParameters
public void JotsaChangeParameters(int key,
Object obj)
JotsaClearVirtualTime
public void JotsaClearVirtualTime()
- This sets the virtual time to zero.
JotsaDebugTimers
public void JotsaDebugTimers()
- This is a debugging routine and is not supported.
JotsaDisplayCanvases
public void JotsaDisplayCanvases()
- This is called by the default paint method to display all JOTSA canvases.
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
JotsaDrawAllClip
public void JotsaDrawAllClip(long timenow)
- Clipping is not supported at this time.
JotsaDrawAllScaledWindow
public void JotsaDrawAllScaledWindow(double scale,
int xoff,
int yoff,
Graphics g)
- This is obsloete.
- See Also:
- JotsaDisplayCanvases
JotsaDrawBackground
public void JotsaDrawBackground()
- This is obsolete.
- See Also:
- JotsaDisplayCanvases
JotsaDrawImage
public void JotsaDrawImage(Graphics g)
- This is obsolete.
- See Also:
- JotsaDisplayCanvases
JotsaDrawScaledBackground
public void JotsaDrawScaledBackground(double scale,
int xoff,
int yoff,
Graphics g)
- This is obsolete.
- See Also:
- JotsaDisplayCanvases
JotsaForceRedisplay
public void JotsaForceRedisplay()
- Force a redisplay of the screen as soon as possible.
JotsaForceRedisplay
public void JotsaForceRedisplay(int n)
- Force a redisplay of the screen as soon as possible.
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.
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
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
JotsaGetVirtualTime
public long JotsaGetVirtualTime()
- Return the current virtual time.
- Returns:
- The current virtual time in milliseconds
JotsaGetVirtualTime
public long JotsaGetVirtualTime(long n)
- Return the virtual time corresponding to the given current time.
- Returns:
- The current virtual time in milliseconds
JotsaHandleCanvasAction
public boolean JotsaHandleCanvasAction(Event e,
Object arg)
- This method is currently not supported.
JotsaHandleCanvasAction
public boolean JotsaHandleCanvasAction(Event e,
Object arg,
JotsaCanvas can)
- This method is currently not supported.
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
JotsaHandleCanvasEvent
public boolean JotsaHandleCanvasEvent(Event e,
JotsaCanvas can)
- This is called by a JotsaCanvas when an event occurs.
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
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
JotsaInsertIntoBackground
public void JotsaInsertIntoBackground(JotsaAnimationObject obj)
JotsaInsertObject
public void JotsaInsertObject(JotsaAnimationObject obj)
- Insert the object in the list of objects for the
JotsaDefaultCanvas.
- Parameters:
- obj - The object to insert
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
JotsaLastDisplayTime
public long JotsaLastDisplayTime()
- Return the virtual time of the last display.
- Returns:
- The virtual time (in milliseconds) of the last display
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
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
JotsaMakeScaledWindow
public JotsaScaledWindow JotsaMakeScaledWindow(String str,
int xsize,
int ysize)
- This method is obsolete and will be replaced.
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
JotsaNotifyIfNecessary
public void JotsaNotifyIfNecessary()
- Notify all threads of pending notifications
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
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.
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.
JotsaPaintEnd
public void JotsaPaintEnd()
- This is called at the end of the default paint method after all
other drawing methods have been called.
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
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
JotsaPaintStart
public void JotsaPaintStart()
- This is called at the start of the default paint method before any
other drawing methods have been called.
JotsaPaintTime
public long JotsaPaintTime()
- Return the virtual time that the last paint was entered.
return Last virtual time that paint was called
JotsaPause
public void JotsaPause()
- Do not automatically restart time when the browser revisits this page.
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
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.
JotsaRemoveAllObjects
public void JotsaRemoveAllObjects()
- Remove all objects corresponding to the default canvas.
Background objects are not removed.
- See Also:
- JotsaRemoveObject
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
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
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
JotsaRemovePopupWindow
public void JotsaRemovePopupWindow(String str)
- Remove a given popup window.
- Parameters:
- str - The name of the popup window to remove
- See Also:
- JotsaMakePopupWindow
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
JotsaRemoveTimerGivenKey
public void JotsaRemoveTimerGivenKey(int key)
- Remove a given timer.
Timers are created with JotsaSetTimeout
- See Also:
- JotsaSetTimeout
JotsaRestartTime
public void JotsaRestartTime()
- Restart the virtual time that was stopped with JotsaStopTime.
- See Also:
- JotsaStopTime
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
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
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
JotsaMovieSpecialModeSet
public void JotsaMovieSpecialModeSet()
JotsaMovieSpecialModeClear
public void JotsaMovieSpecialModeClear()
JotsaMovieSpecialModeGet
public boolean JotsaMovieSpecialModeGet()
JotsaSpecialDisplayModeSet
public void JotsaSpecialDisplayModeSet()
JotsaSpecialDisplayModeClear
public void JotsaSpecialDisplayModeClear()
JotsaSpecialDisplayModeGet
public int JotsaSpecialDisplayModeGet()
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
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
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
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
JotsaStopTime
public void JotsaStopTime()
- Stop the virtual time.
All all objects will stop moving.
- See Also:
- JotsaRestartTime
JotsaTerminateAll
public void JotsaTerminateAll()
- Terminate all objects associated with the default canvas.
This causes them to notify their waiting threads.
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
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
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
repaint_clip
public void repaint_clip()
- This is currently not supported.
repaint_full
public void repaint_full()
- This is currently not supported.
JotsaUpdateAll
public void JotsaUpdateAll(long timenow)
JotsaUpdateSleep
public int JotsaUpdateSleep()
JotsaDrawAll
public void JotsaDrawAll()
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
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
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
ShowTimingStats
public void ShowTimingStats()
ShowTimingStats
public void ShowTimingStats(int n)
ShowObjects
public void ShowObjects()
JotsaResetAllToFinal
public void JotsaResetAllToFinal()
JotsaMoveIntoBackground
public void JotsaMoveIntoBackground(JotsaAnimationObject obj)
JotsaMoveAllIntoBackground
public void JotsaMoveAllIntoBackground()
JotsaShowNames
public void JotsaShowNames()
JotsaInhibitDisplay
public void JotsaInhibitDisplay()
JotsaInhibitDisplayOff
public void JotsaInhibitDisplayOff()
JotsaSetBackgroundSkip
public void JotsaSetBackgroundSkip(int n)
JotsaInhibitDisplayTest
public boolean JotsaInhibitDisplayTest()
JotsaSetDisplayObsolete
public void JotsaSetDisplayObsolete(boolean flg)
JotsaSetDisplayObsoleteOne
public void JotsaSetDisplayObsoleteOne(boolean flg)
JotsaSetDisplayCodeNameChange
public void JotsaSetDisplayCodeNameChange(boolean flg)
JotsaSetDisplayCodeNameChangeOne
public void JotsaSetDisplayCodeNameChangeOne(boolean flg)
JotsaSetFixJavaArcBug
public void JotsaSetFixJavaArcBug(boolean flg)
- This method has not yet been implemented.
display_obsolete_code
protected void display_obsolete_code(String str)
display_code_name_change
protected void display_code_name_change(String str1,
String str2)
JotsaStartLogger
public void JotsaStartLogger(String name,
String fn)
All Packages Class Hierarchy This Package Previous Next Index