TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
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 |
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.
Definition at line 22 of file PlaybackPanel.java.
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.
EventPlayer cu.trustGrapher.eventplayer.PlaybackPanel.getEventPlayer | ( | ) |
Implements cu.trustGrapher.eventplayer.EventPlayerListener.
Definition at line 63 of file PlaybackPanel.java.
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.
eventIndex |
Implements cu.trustGrapher.eventplayer.EventPlayerListener.
Definition at line 131 of file PlaybackPanel.java.
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.
void cu.trustGrapher.eventplayer.PlaybackPanel.setScrubMode | ( | boolean | scrub | ) |
Sets whether the timelineSlider mode is set to scrub. Drag & Drop otherwise.
scrub | true to set to the timelineSlider to scrub mode, false to set to Drag & Drop mode |
Definition at line 72 of file PlaybackPanel.java.
Definition at line 28 of file PlaybackPanel.java.
JButton cu.trustGrapher.eventplayer.PlaybackPanel.pauseButton [package] |
Definition at line 26 of file PlaybackPanel.java.
JButton cu.trustGrapher.eventplayer.PlaybackPanel.reverseButton [package] |
Definition at line 26 of file PlaybackPanel.java.
JSlider cu.trustGrapher.eventplayer.PlaybackPanel.timelineSlider [package] |
Definition at line 27 of file PlaybackPanel.java.