TrustGrapher  r52
A playabale simulator for modelling trust between agents
cu.trustGrapher.eventplayer.PlaybackPanel Class Reference
Inheritance diagram for cu.trustGrapher.eventplayer.PlaybackPanel:
Collaboration diagram for cu.trustGrapher.eventplayer.PlaybackPanel:

List of all members.

Classes

class  PlaybackButtonListener
class  SpeedSliderListener
class  TimelineSliderListener

Public Member Functions

 PlaybackPanel (EventPlayer eventThread)
JButton getPauseButton ()
EventPlayer getEventPlayer ()
void setScrubMode (boolean scrub)
void goToIndex (int eventIndex)
void playbackPause ()

Protected Attributes

EventPlayer eventThread

Package Attributes

JButton reverseButton
JButton pauseButton
JSlider timelineSlider

Detailed Description

The PlaybackPanel always exists when graphs are loaded, but it is only displayed when the check box option for it is checked. It contains a timeline slider which can be scrubbed or dragged and dropped depending on the option that is selected. It also has buttons which control the direction of event playback. There is also a slider which changes the number of events processed on each tick (essentially the speed of playback)

This class is just the JPanel and handlers. It must be placed by TrustGrapher, and is only updated to display the current play state if the EventPlayer adds it as a listener.

Author:
Andrew O'Hara

Definition at line 22 of file PlaybackPanel.java.


Constructor & Destructor Documentation

cu.trustGrapher.eventplayer.PlaybackPanel.PlaybackPanel ( EventPlayer  eventThread)

Creates a JPanel which contains controls for the event player

Definition at line 34 of file PlaybackPanel.java.

Here is the call graph for this function:


Member Function Documentation

EventPlayer cu.trustGrapher.eventplayer.PlaybackPanel.getEventPlayer ( )
JButton cu.trustGrapher.eventplayer.PlaybackPanel.getPauseButton ( )

Definition at line 59 of file PlaybackPanel.java.

void cu.trustGrapher.eventplayer.PlaybackPanel.goToIndex ( int  eventIndex)

Moves the timeline slider to the given index and updates the playback buttons to reflect the position in the timeline and the EventPlayer playState. This should only be called by the EventPlayer to notify it that the currentEventIndex has changed.

Parameters:
eventIndex

Implements cu.trustGrapher.eventplayer.EventPlayerListener.

Definition at line 131 of file PlaybackPanel.java.

Here is the call graph for this function:

void cu.trustGrapher.eventplayer.PlaybackPanel.playbackPause ( )

Updates the playback buttons to reflect a paused playState depending on the position in the timeline.

Definition at line 151 of file PlaybackPanel.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cu.trustGrapher.eventplayer.PlaybackPanel.setScrubMode ( boolean  scrub)

Sets whether the timelineSlider mode is set to scrub. Drag & Drop otherwise.

Parameters:
scrubtrue to set to the timelineSlider to scrub mode, false to set to Drag & Drop mode

Definition at line 72 of file PlaybackPanel.java.


Member Data Documentation

Definition at line 26 of file PlaybackPanel.java.

Definition at line 26 of file PlaybackPanel.java.


The documentation for this class was generated from the following file: