Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X > Class Template Referenceabstract

Inherits BorderPane.

Inherited by org.sleuthkit.autopsy.timeline.ui.countsview.EventCountsChart.CountsIntervalSelector, and org.sleuthkit.autopsy.timeline.ui.detailview.DetailsChart.DetailIntervalSelector.

Classes

class  ClearSelectedIntervalAction
 
enum  DragPosition
 
interface  IntervalSelectorProvider
 
class  ZoomToSelectedIntervalAction
 

Public Member Functions

 IntervalSelector (IntervalSelectorProvider< X > chart)
 
getSpanEnd ()
 
getSpanStart ()
 

Public Attributes

final IntervalSelectorProvider< X > chart
 

Protected Member Functions

abstract Interval adjustInterval (Interval interval)
 
abstract String formatSpan (final X date)
 
abstract DateTime parseDateTime (X date)
 

Private Member Functions

Point2D getLocalMouseCoords (MouseEvent mouseEvent)
 
getValueForDisplay (final double displayX)
 
void updateStartAndEnd ()
 
void zoomToSelectedInterval ()
 

Private Attributes

BorderPane bottomBorder
 
Button closeButton
 
final TimeLineController controller
 
DragPosition dragPosition
 
Label endLabel
 
final BooleanProperty isDragging = new SimpleBooleanProperty(false)
 
double startDragX
 
Label startLabel
 
double startLeft
 
double startWidth
 
Tooltip tooltip
 
Button zoomButton
 

Static Private Attributes

static final Image CLEAR_INTERVAL_ICON = new Image("/org/sleuthkit/autopsy/timeline/images/cross-script.png", 16, 16, true, true, true)
 
static final double HALF_STROKE = STROKE_WIDTH / 2
 
static final Logger logger = Logger.getLogger(IntervalSelector.class.getName())
 
static final double STROKE_WIDTH = 3
 
static final Image ZOOM_TO_INTERVAL_ICON = new Image("/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-fit.png", 16, 16, true, true, true)
 

Detailed Description

Visually represents a 'selected' time range, and allows mouse interactions with it.

Parameters
<X>the type of values along the x axis this is a selector for

This abstract class requires concrete implementations to implement template methods to handle formating and date 'lookup' of the generic x-axis type

Definition at line 60 of file IntervalSelector.java.

Constructor & Destructor Documentation

Definition at line 100 of file IntervalSelector.java.

Member Function Documentation

abstract Interval org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.adjustInterval ( Interval  interval)
abstractprotected
Parameters
intervalthe interval represented by this selector
Returns
a modified version of
i
adjusted to suite the needs of the concrete implementation

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.zoomToSelectedInterval().

abstract String org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.formatSpan ( final X  date)
abstractprotected

format a string representation of the given x-axis value to use in the tooltip

Parameters
datea x-axis value of type X
Returns
a string representation of the given x-axis value

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.updateStartAndEnd().

Point2D org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.getLocalMouseCoords ( MouseEvent  mouseEvent)
private

Definition at line 217 of file IntervalSelector.java.

Returns
the value along the x-axis corresponding to the left edge of the selector

Definition at line 284 of file IntervalSelector.java.

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.updateStartAndEnd(), and org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.zoomToSelectedInterval().

Returns
the value along the x-axis corresponding to the right edge of the selector

Definition at line 292 of file IntervalSelector.java.

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.updateStartAndEnd(), and org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.zoomToSelectedInterval().

X org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.getValueForDisplay ( final double  displayX)
private
abstract DateTime org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.parseDateTime ( date)
abstractprotected

parse an x-axis value to a DateTime

Parameters
datea x-axis value of type X
Returns
a DateTime corresponding to the given x-axis value

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.zoomToSelectedInterval().

void org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.updateStartAndEnd ( )
private

Definition at line 269 of file IntervalSelector.java.

void org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.zoomToSelectedInterval ( )
private

Definition at line 223 of file IntervalSelector.java.

Member Data Documentation

BorderPane org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.bottomBorder
private

Definition at line 98 of file IntervalSelector.java.

the Axis this is a selector over

Definition at line 72 of file IntervalSelector.java.

Referenced by org.sleuthkit.autopsy.timeline.ui.IntervalSelector< DateTime >.IntervalSelector().

final Image org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.CLEAR_INTERVAL_ICON = new Image("/org/sleuthkit/autopsy/timeline/images/cross-script.png", 16, 16, true, true, true)
staticprivate

Definition at line 64 of file IntervalSelector.java.

Button org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.closeButton
private

Definition at line 92 of file IntervalSelector.java.

Definition at line 83 of file IntervalSelector.java.

Definition at line 76 of file IntervalSelector.java.

Definition at line 89 of file IntervalSelector.java.

final double org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.HALF_STROKE = STROKE_WIDTH / 2
staticprivate

Definition at line 67 of file IntervalSelector.java.

final BooleanProperty org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.isDragging = new SimpleBooleanProperty(false)
private

Definition at line 81 of file IntervalSelector.java.

final Logger org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.logger = Logger.getLogger(IntervalSelector.class.getName())
staticprivate

Definition at line 62 of file IntervalSelector.java.

Definition at line 78 of file IntervalSelector.java.

Definition at line 86 of file IntervalSelector.java.

Definition at line 77 of file IntervalSelector.java.

Definition at line 79 of file IntervalSelector.java.

final double org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.STROKE_WIDTH = 3
staticprivate

Definition at line 66 of file IntervalSelector.java.

Definition at line 74 of file IntervalSelector.java.

final Image org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.ZOOM_TO_INTERVAL_ICON = new Image("/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-fit.png", 16, 16, true, true, true)
staticprivate

Definition at line 65 of file IntervalSelector.java.

Definition at line 95 of file IntervalSelector.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.