Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.EnumSliderLabelFormatter< EnumType extends Enum< EnumType > &DisplayNameProvider > Class Template Reference

Inherits StringConverter< Double >.

Public Member Functions

Double fromString (String string)
 
String toString (Double dbl)
 

Private Attributes

final Class< EnumType > clazz
 
final Function< Integer, Integer > indexAdjsuter
 

Detailed Description

StringConverter for the tick Labels of a Slider that is "backed" by an Enum that extends DisplayNameProvider. Narrows the Slider's Double value to an Integer and then uses that as the index of the Enum value whose displayName will be shown as the tick Label

Parameters
<EnumType>The type of Enum that this converter works with.

Definition at line 221 of file ZoomSettingsPane.java.

Member Function Documentation

Double org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.EnumSliderLabelFormatter< EnumType extends Enum< EnumType > &DisplayNameProvider >.fromString ( String  string)

Definition at line 246 of file ZoomSettingsPane.java.

String org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.EnumSliderLabelFormatter< EnumType extends Enum< EnumType > &DisplayNameProvider >.toString ( Double  dbl)

Definition at line 240 of file ZoomSettingsPane.java.

Member Data Documentation

final Class<EnumType> org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.EnumSliderLabelFormatter< EnumType extends Enum< EnumType > &DisplayNameProvider >.clazz
private

A Type token for the class of Enum that this converter works with.

Definition at line 226 of file ZoomSettingsPane.java.

final Function<Integer, Integer> org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane.EnumSliderLabelFormatter< EnumType extends Enum< EnumType > &DisplayNameProvider >.indexAdjsuter
private

A Function that can be used to adjust the narrowed slider value if it doesn't correspond exactly to the Enum value index.

Definition at line 232 of file ZoomSettingsPane.java.


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

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