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.
-
controls
-
-
trace_out
-
-
Anim_applet()
-
-
actionPerformed(ActionEvent)
- Updated action handler for 1.1 event model
-
adjustmentValueChanged(AdjustmentEvent)
- Scroll bar event handler
-
anim_completed()
- This method can be overidden in the subclass, and used to
display results.
-
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.
-
anim_layout()
- This method must be provided in the subclass, it should setup
all the simulation entities, and link their ports.
-
anim_relayout()
- Reinitialises all the animation entities, by calling
anim_layout(), then redraws them.
-
init()
- This method should not be overidden in the subclass, use
anim_init() instead.
-
run()
- This method should not be overidden in the subclass
-
start()
- This method should not be overidden in the subclass
-
stop()
- This method should not be overidden in the subclass
controls
protected Panel controls
trace_out
protected Sim_anim trace_out
Anim_applet
public Anim_applet()
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.
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.
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.
init
public final void init()
- This method should not be overidden in the subclass, use
anim_init() instead.
- Overrides:
- init in class Applet
start
public final void start()
- This method should not be overidden in the subclass
- Overrides:
- start in class Applet
stop
public final void stop()
- This method should not be overidden in the subclass
- Overrides:
- stop in class Applet
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Updated action handler for 1.1 event model
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
- Scroll bar event handler
run
public final void run()
- This method should not be overidden in the subclass
All Packages Class Hierarchy This Package Previous Next Index