Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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 |
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.
org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.ZoomSettingsPane | ( | TimeLineController | controller | ) |
Constructor
controller | TimeLineController this panel functions as a view for. |
Definition at line 73 of file ZoomSettingsPane.java.
References org.sleuthkit.autopsy.timeline.FXMLConstructor.construct(), org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.controller, and org.sleuthkit.autopsy.timeline.TimeLineController.getEventsModel().
|
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).
slider | The slider that we are configuring. |
sliderValueConsumer | The consumer that will get passed the newly selected slider value (mapped to EnumType automatically). |
modelProperty | The readonly model property that this slider should be synced to. |
enumClass | A type token for EnumType, ie value of type Class<EnumType> |
driverValueMapper | A Function that maps from driver values of type DriverType to Integers representing the index of the corresponding EnumType. |
labelIndexMapper | A 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 | ( | ) |
In order for the selected value in the time unit slider to correspond to the amount of time used as units along the x-axis of the view, and since we don't want to show "forever" as a time unit, the range of the slider is restricted, and there is an offset of 1 between the "real" value, and what is shown in the slider labels.
Definition at line 84 of file ZoomSettingsPane.java.
References org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.configureSliderListeners(), org.sleuthkit.autopsy.timeline.ViewMode.COUNTS, org.sleuthkit.autopsy.timeline.datamodel.FilteredEventsModel.descriptionLODProperty(), org.sleuthkit.autopsy.timeline.datamodel.FilteredEventsModel.eventTypeZoomProperty(), org.sleuthkit.autopsy.timeline.utils.RangeDivisionInfo.getPeriodSize(), org.sleuthkit.autopsy.timeline.utils.RangeDivisionInfo.getRangeDivisionInfo(), org.sleuthkit.autopsy.timeline.ViewMode.LIST, org.sleuthkit.autopsy.timeline.datamodel.FilteredEventsModel.timeRangeProperty(), and org.sleuthkit.autopsy.timeline.TimeLineController.viewModeProperty().
|
private |
Definition at line 65 of file ZoomSettingsPane.java.
Referenced by org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.ZoomSettingsPane().
|
private |
Definition at line 51 of file ZoomSettingsPane.java.
|
private |
Definition at line 53 of file ZoomSettingsPane.java.
|
private |
Definition at line 66 of file ZoomSettingsPane.java.
|
private |
Definition at line 61 of file ZoomSettingsPane.java.
|
private |
Definition at line 63 of file ZoomSettingsPane.java.
|
private |
Definition at line 56 of file ZoomSettingsPane.java.
|
private |
Definition at line 58 of file ZoomSettingsPane.java.
|
private |
Definition at line 48 of file ZoomSettingsPane.java.
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.