Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane Class Reference

Inherits TitledPane.

Classes

class  EnumSliderLabelFormatter
 

Public Member Functions

 ZoomSettingsPane (TimeLineController controller)
 
void initialize ()
 

Static Private Member Functions

static< DriverType, EnumTypeextendsEnum< EnumType > &DisplayNameProvider void configureSliderListeners (Slider slider, Consumer< EnumType > sliderValueConsumer, ReadOnlyObjectProperty< DriverType > modelProperty, Class< EnumType > enumClass, Function< DriverType, Integer > driverValueMapper, Function< Integer, Integer > labelIndexMapper)
 

Private Attributes

final TimeLineController controller
 
Label descrLODLabel
 
Slider descrLODSlider
 
final FilteredEventsModel filteredEvents
 
Label timeUnitLabel
 
Slider timeUnitSlider
 
Label typeZoomLabel
 
Slider typeZoomSlider
 
Label zoomLabel
 

Detailed Description

A Panel that acts as a view for a given TimeLineController/FilteredEventsModel. It has sliders to provide context/control over three axes of zooming (timescale, event hierarchy level, and description level of detail).

Definition at line 45 of file ZoomSettingsPane.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.ZoomSettingsPane ( TimeLineController  controller)

Member Function Documentation

static <DriverType,EnumTypeextendsEnum<EnumType> & DisplayNameProvider void org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.configureSliderListeners ( Slider  slider,
Consumer< EnumType >  sliderValueConsumer,
ReadOnlyObjectProperty< DriverType >  modelProperty,
Class< EnumType >  enumClass,
Function< DriverType, Integer >  driverValueMapper,
Function< Integer, Integer >  labelIndexMapper 
)
staticprivate

Configure the listeners that keep the given slider in sync with model property changes, and that handle user input on the slider. The listener attached to the slider is added and removed to avoid circular updates.

Because Sliders work in terms of Doubles but represent ordered Enums that are indexed by Integers, and because the model properties may not be of the same type as the Enum(timeUnitSlider relates to an Interval in the filteredEvents model, rather than the TimeUnits shown on the Slider), a mapper is needed to convert between DriverType and Integer indices(driverValueMapper). Another mapper is used to modifiy the mapping from Integer index to Enum value displayed as the slider tick label(labelIndexMapper).

Parameters
sliderThe slider that we are configuring.
sliderValueConsumerThe consumer that will get passed the newly selected slider value (mapped to EnumType automatically).
modelPropertyThe readonly model property that this slider should be synced to.
enumClassA type token for EnumType, ie value of type Class<EnumType>
driverValueMapperA Function that maps from driver values of type DriverType to Integers representing the index of the corresponding EnumType.
labelIndexMapperA Function that maps from Integer (narrowed slider value) to Integers representing the index of the corresponding EnumType. Used to compensate for slider values that do not lineup exactly with the Enum value indices to use as tick Labels.

Definition at line 169 of file ZoomSettingsPane.java.

Referenced by org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.initialize().

void org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.initialize ( )

Member Data Documentation

final TimeLineController org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.controller
private
Label org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.descrLODLabel
private

Definition at line 51 of file ZoomSettingsPane.java.

Slider org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.descrLODSlider
private

Definition at line 53 of file ZoomSettingsPane.java.

final FilteredEventsModel org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.filteredEvents
private

Definition at line 66 of file ZoomSettingsPane.java.

Label org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.timeUnitLabel
private

Definition at line 61 of file ZoomSettingsPane.java.

Slider org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.timeUnitSlider
private

Definition at line 63 of file ZoomSettingsPane.java.

Label org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.typeZoomLabel
private

Definition at line 56 of file ZoomSettingsPane.java.

Slider org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.typeZoomSlider
private

Definition at line 58 of file ZoomSettingsPane.java.

Label org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.zoomLabel
private

Definition at line 48 of file ZoomSettingsPane.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.