Inherits BasicSliderUI.
Custom view for the JSlider.
Definition at line 653 of file MediaPlayerPanel.java.
org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.CircularJSliderUI |
( |
JSlider |
slider, |
|
|
Dimension |
thumbDimension |
|
) |
| |
Creates a custom view for the JSlider. This view draws a blue oval thumb at the given width and height. It also paints the track blue as the thumb progresses.
- Parameters
-
slider | JSlider component |
thumbDimension | |
Definition at line 668 of file MediaPlayerPanel.java.
TrackListener org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.createTrackListener |
( |
JSlider |
slider | ) |
|
|
protected |
This track listener will force the thumb to be snapped to the mouse location. This makes grabbing and dragging the JSlider much easier. Using the default track listener, the user would have to click exactly on the slider thumb to drag it. Now the thumb positions itself under the mouse so that it can always be dragged.
Definition at line 733 of file MediaPlayerPanel.java.
Dimension org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.getThumbSize |
( |
| ) |
|
|
protected |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.paintThumb |
( |
Graphics |
graphic | ) |
|
Modifies the View to be an oval rather than the underlying rectangle Controller.
Definition at line 689 of file MediaPlayerPanel.java.
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.paintTrack |
( |
Graphics |
graphic | ) |
|
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.scrollDueToClickInTrack |
( |
int |
direction | ) |
|
|
protected |
void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.update |
( |
Graphics |
graphic, |
|
|
JComponent |
component |
|
) |
| |
final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.thumbColor |
|
private |
final Dimension org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.thumbDimension |
|
private |
final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.trackSeen |
|
private |
final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.trackUnseen |
|
private |
The documentation for this class was generated from the following file: