Class eduni.simanim.Anim_applet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class eduni.simanim.Anim_applet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----eduni.simanim.Anim_applet

public class Anim_applet
extends Applet
implements Runnable
The superclass for all simulation animations. New animations should extend this and provide bodies for the methods anim_layout() and anim_init().

Constructor Index

 o Anim_applet()

Method Index

 o anim_init()
This method can be overidden in the subclass, and used to setup any GUI objects to be used for input to the animation.
 o anim_layout()
This method must be provided in the subclass, it should setup all the simulation entities, and link their ports.
 o anim_relayout()
Reinitialises all the animation entities, by calling anim_layout(), then redraws them.
 o handleEvent(Event)
This method can be overidden in the subclass to handle GUI events.
 o init()
This method should not be overidden in the subclass, use anim_init() instead.
 o run()
This method should not be overidden in the subclass
 o start()
This method should not be overidden in the subclass
 o stop()
This method should not be overidden in the subclass

Constructors

 o Anim_applet
  public Anim_applet()

Methods

 o anim_layout
  public abstract void anim_layout()
This method must be provided in the subclass, it should setup all the simulation entities, and link their ports. The method should never be called by the subclass itself, call anim_relayout() instead.
 o anim_init
  public void anim_init()
This method can be overidden in the subclass, and used to setup any GUI objects to be used for input to the animation. The method is called once when the applet starts up.
 o init
  public final void init()
This method should not be overidden in the subclass, use anim_init() instead.
Overrides:
init in class Applet
 o start
  public final void start()
This method should not be overidden in the subclass
Overrides:
start in class Applet
 o stop
  public final void stop()
This method should not be overidden in the subclass
Overrides:
stop in class Applet
 o anim_relayout
  public void anim_relayout()
Reinitialises all the animation entities, by calling anim_layout(), then redraws them. This method can be called by the subclass if a change to the entities needs to be shown before the simulation starts. It should be used instead of calling anim_layout() directly.
 o handleEvent
  public boolean handleEvent(Event e)
This method can be overidden in the subclass to handle GUI events. Warning, if overidden, ensure the last line is:

return super.handleEvent(e);

Overrides:
handleEvent in class Component
 o run
  public final void run()
This method should not be overidden in the subclass

All Packages  Class Hierarchy  This Package  Previous  Next  Index