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

Inherits Rectangle.

Inherited by org.sleuthkit.autopsy.timeline.ui.countsview.EventCountsChart.CountsIntervalSelector.

Classes

enum  DragPosition
 

Public Member Functions

 IntervalSelector (double x, double height, Axis< X > axis, TimeLineController controller)
 
getSpanEnd ()
 
getSpanStart ()
 

Protected Member Functions

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

Protected Attributes

Tooltip tooltip
 

Private Member Functions

void setTooltip ()
 

Private Attributes

final Axis< X > dateAxis
 
DragPosition dragPosition
 
double startLeft
 
double startX
 
double startWidth
 

Static Private Attributes

static final double STROKE_WIDTH = 3
 
static final double HALF_STROKE = STROKE_WIDTH / 2
 

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 hook methods to handle formating and date 'lookup' of the generic x-axis type

Definition at line 126 of file TimeLineChart.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.IntervalSelector< X >.IntervalSelector ( double  x,
double  height,
Axis< X >  axis,
TimeLineController  controller 
)
Parameters
xthe initial x position of this selector
heightthe initial height of this selector
axisthe Axis<X> this is a selector over
controllerthe controller to invoke when this selector is double clicked

Definition at line 155 of file TimeLineChart.java.

References org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.IntervalSelector< X >.DragPosition.CENTER, org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.IntervalSelector< X >.DragPosition.LEFT, and org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.IntervalSelector< X >.DragPosition.RIGHT.

Member Function Documentation

abstract Interval org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.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
abstract String org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.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
Returns
the value along the x-axis corresponding to the left edge of the selector

Definition at line 261 of file TimeLineChart.java.

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

Definition at line 267 of file TimeLineChart.java.

abstract DateTime org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.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

Definition at line 249 of file TimeLineChart.java.

Member Data Documentation

final Axis<X> org.sleuthkit.autopsy.timeline.ui.TimeLineChart< X >.IntervalSelector< X >.dateAxis
private

the Axis this is a selector over

Definition at line 133 of file TimeLineChart.java.

Definition at line 138 of file TimeLineChart.java.

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

Definition at line 130 of file TimeLineChart.java.

Definition at line 140 of file TimeLineChart.java.

Definition at line 144 of file TimeLineChart.java.

Definition at line 142 of file TimeLineChart.java.

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

Definition at line 128 of file TimeLineChart.java.

Definition at line 135 of file TimeLineChart.java.


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

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.