fi.helsinki.dacopan.contsig
Interface ControlSignalsListener

All Known Implementing Classes:
AbstractAnimationPanel, ENCPanel, MainFrame, MSCPanel, NotePanel, TimePanel, UFOPanel

public interface ControlSignalsListener

Describes the events related to the time state of the animation that all animation panels should react to by changing their visible state. In any view mode, there is exactly one AnimationTimeState instance that manages the time state and sends related events to all visible animation panels.

It is the responsibility of the MainFrame to register all visible animation panels as listeners to the AnimationTimeState

See Also:
AnimationTimeState, MainFrame

Method Summary
 void advance(float step, float nowTime)
          Signals the listener that it should visualise the network exchange data at the nowTime point in time, possibly as an incremental change to previous state.
 void stepTo(float nowTime)
          Signals the listener that it should visualise the network exchange data at the nowTime point in time.
 void toPauseMode()
          Signals the listener that the animation has moved to PAUSE mode.
 void toPlayMode()
          Signals the listener that the animation has moved to PLAY mode.
 

Method Detail

advance

void advance(float step,
             float nowTime)
Signals the listener that it should visualise the network exchange data at the nowTime point in time, possibly as an incremental change to previous state. The change is given as step parameter.

The listener is free to implement the advance signal as if it was the same thing as receiving a stepTo signal.

It is the responsibility of the listening object to call repaint() on itself as a result of receiving this signal.

Parameters:
step - The incremental time step from the previous state.
nowTime - The point of time in network exchange data the listener should visualize.

stepTo

void stepTo(float nowTime)
Signals the listener that it should visualise the network exchange data at the nowTime point in time.

It is the responsibility of the listening object to call repaint() on itself as a result of receiving this signal.

Parameters:
nowTime - The point of time in network exchange data the listener should visualize.

toPlayMode

void toPlayMode()
Signals the listener that the animation has moved to PLAY mode. There are no strict responsibilities for the listener to react to this in any way.


toPauseMode

void toPauseMode()
Signals the listener that the animation has moved to PAUSE mode. There are no strict responsibilities for the listener to react to this in any way.



© Dacopan2 team, 2005-