Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI Class Reference

Inherits BasicSliderUI.

Public Member Functions

 CircularJSliderUI (JSlider slider, Dimension thumbDimension)
void paintThumb (Graphics graphic)
void paintTrack (Graphics graphic)
void update (Graphics graphic, JComponent component)

Protected Member Functions

TrackListener createTrackListener (JSlider slider)
Dimension getThumbSize ()
void scrollDueToClickInTrack (int direction)

Private Attributes

final Color thumbColor
final Dimension thumbDimension
final Color trackSeen
final Color trackUnseen

Detailed Description

Custom view for the JSlider.

Definition at line 653 of file

Constructor & Destructor Documentation

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.

sliderJSlider component

Definition at line 668 of file

Member Function Documentation

TrackListener org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.createTrackListener ( JSlider  slider)

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

Dimension org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.getThumbSize ( )

Definition at line 680 of file

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

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.paintTrack ( Graphics  graphic)

Definition at line 704 of file

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.scrollDueToClickInTrack ( int  direction)

Definition at line 758 of file

void org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.update ( Graphics  graphic,
JComponent  component 

Applies anti-aliasing if available.

Definition at line 782 of file

Member Data Documentation

final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.thumbColor

Definition at line 656 of file

final Dimension org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.thumbDimension

Definition at line 655 of file

final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.trackSeen

Definition at line 658 of file

final Color org.sleuthkit.autopsy.contentviewers.MediaPlayerPanel.CircularJSliderUI.trackUnseen

Definition at line 657 of file

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

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.