Autopsy  4.21.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 666 of file MediaPlayerPanel.java.

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.

Parameters
sliderJSlider component
thumbDimension

Definition at line 681 of file MediaPlayerPanel.java.

Member Function Documentation

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 746 of file MediaPlayerPanel.java.

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

Definition at line 693 of file MediaPlayerPanel.java.

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 MediaPlayerPanel.java.

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

Definition at line 717 of file MediaPlayerPanel.java.

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

Definition at line 771 of file MediaPlayerPanel.java.

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

Applies anti-aliasing if available.

Definition at line 795 of file MediaPlayerPanel.java.

Member Data Documentation

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

Definition at line 669 of file MediaPlayerPanel.java.

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

Definition at line 668 of file MediaPlayerPanel.java.

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

Definition at line 671 of file MediaPlayerPanel.java.

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

Definition at line 670 of file MediaPlayerPanel.java.


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

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