Autopsy  4.19.3
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 666 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 681 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 746 of file

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

Definition at line 693 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 702 of file

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

Definition at line 717 of file

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

Definition at line 771 of file

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

Applies anti-aliasing if available.

Definition at line 795 of file

Member Data Documentation

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

Definition at line 669 of file

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

Definition at line 668 of file

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

Definition at line 671 of file

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

Definition at line 670 of file

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.