Autopsy  4.4
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 i)
 
abstract String formatSpan (final X date)
 
abstract DateTime parseDateTime (X date)
 

Private Member Functions

Point2D getLocalMouseCoords (MouseEvent mouseEvent)
 
getValueForDisplay (final double display)
 
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 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 57 of file IntervalSelector.java.

Constructor & Destructor Documentation

Definition at line 95 of file IntervalSelector.java.

Member Function Documentation

abstract Interval org.sleuthkit.autopsy.timeline.ui.IntervalSelector< X >.adjustInterval ( Interval  i)
abstractprotected
Parameters
ithe 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 212 of file IntervalSelector.java.

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

Definition at line 270 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 278 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  display)
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 255 of file IntervalSelector.java.

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

Definition at line 216 of file IntervalSelector.java.

Member Data Documentation

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

Definition at line 93 of file IntervalSelector.java.

the Axis this is a selector over

Definition at line 67 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 59 of file IntervalSelector.java.

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

Definition at line 87 of file IntervalSelector.java.

Definition at line 78 of file IntervalSelector.java.

Definition at line 71 of file IntervalSelector.java.

Definition at line 84 of file IntervalSelector.java.

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

Definition at line 62 of file IntervalSelector.java.

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

Definition at line 76 of file IntervalSelector.java.

Definition at line 73 of file IntervalSelector.java.

Definition at line 81 of file IntervalSelector.java.

Definition at line 72 of file IntervalSelector.java.

Definition at line 74 of file IntervalSelector.java.

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

Definition at line 61 of file IntervalSelector.java.

Definition at line 69 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 60 of file IntervalSelector.java.

Definition at line 90 of file IntervalSelector.java.


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

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