Autopsy  4.14.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 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 668 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 733 of file MediaPlayerPanel.java.

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

Definition at line 680 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 689 of file MediaPlayerPanel.java.

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

Definition at line 704 of file MediaPlayerPanel.java.

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

Definition at line 758 of file MediaPlayerPanel.java.

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

Applies anti-aliasing if available.

Definition at line 782 of file MediaPlayerPanel.java.

Member Data Documentation

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

Definition at line 656 of file MediaPlayerPanel.java.

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

Definition at line 655 of file MediaPlayerPanel.java.

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

Definition at line 658 of file MediaPlayerPanel.java.

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

Definition at line 657 of file MediaPlayerPanel.java.


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

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