public class AnimationBarListener extends Object implements ActionListener, AnimateClient, IWindowListener
Constructor and Description |
---|
AnimationBarListener(TimeAnimation animation,
AnimationDialog dialog,
ViewDocument view) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
destroyThread()
Stops the thread an set this to null.
|
void |
end()
This event is thrown when the animation finishes
|
void |
endIteration(RelativeInstant endDateTime)
This event is thrown when an iteration finishes.
|
void |
update(RelativeInstant startDateTime,
RelativeInstant endDateTime)
Updates the animation client
|
void |
windowActivated()
This method it is invoked when the window is activated.
|
void |
windowClosed()
This method it is invoked when the window is closed
|
public AnimationBarListener(TimeAnimation animation, AnimationDialog dialog, ViewDocument view)
public void destroyThread()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void update(RelativeInstant startDateTime, RelativeInstant endDateTime)
AnimateClient
update
in interface AnimateClient
startDateTime
- Date when the step startsendDateTime
- Date when the step endspublic void endIteration(RelativeInstant endDateTime)
AnimateClient
endIteration
in interface AnimateClient
endDateTime
- Date when the iteration endspublic void end()
AnimateClient
end
in interface AnimateClient
public void windowActivated()
IWindowListener
windowActivated
in interface IWindowListener
public void windowClosed()
IWindowListener
windowClosed
in interface IWindowListener