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 abstract class Anim_applet
extends Applet
implements Runnable, ActionListener, AdjustmentListener, Traceable
The superclass for all simulation animations. New animations should extend this and provide bodies for the methods anim_layout() and anim_init().

See the simanim guide for more information on how to use this class.


Variable Index

 o controls
 o trace_out

Constructor Index

 o Anim_applet()

Method Index

 o actionPerformed(ActionEvent)
Updated action handler for 1.1 event model
 o adjustmentValueChanged(AdjustmentEvent)
Scroll bar event handler
 o anim_completed()
This method can be overidden in the subclass, and used to display results.
 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 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

Variables

 o controls
 protected Panel controls
 o trace_out
 protected Sim_anim trace_out

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 anim_completed
 public void anim_completed()
This method can be overidden in the subclass, and used to display results. It is called once when each simulation run finishes.

 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 actionPerformed
 public void actionPerformed(ActionEvent e)
Updated action handler for 1.1 event model

 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
Scroll bar event handler

 o run
 public final void run()
This method should not be overidden in the subclass


All Packages  Class Hierarchy  This Package  Previous  Next  Index