Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.History< T > Class Template Reference

Classes

class  ObservableStack
 

Public Member Functions

synchronized T getCurrentState ()
 
synchronized boolean canAdvance ()
 
synchronized boolean canRetreat ()
 
synchronized ReadOnlyObjectProperty< T > currentState ()
 
synchronized ReadOnlyBooleanProperty getCanAdvance ()
 
synchronized ReadOnlyBooleanProperty getCanRetreat ()
 
 History (T initialState)
 
 History ()
 
synchronized T advance ()
 
synchronized T retreat ()
 
synchronized void advance (T newState) throws IllegalArgumentException
 
synchronized void clear ()
 

Private Attributes

final ObservableStack< T > historyStack = new ObservableStack<>()
 
final ObservableStack< T > forwardStack = new ObservableStack<>()
 
final ReadOnlyObjectWrapper< T > currentState = new ReadOnlyObjectWrapper<>()
 
final ReadOnlyBooleanWrapper canAdvance = new ReadOnlyBooleanWrapper()
 
final ReadOnlyBooleanWrapper canRetreat = new ReadOnlyBooleanWrapper()
 

Detailed Description

A basic history implementation. Keeps a history (and forward) stack of state objects of type <T>. exposes current state and availability of advance/retreat operations via methods and JFX Propertys. Null is not a valid state, and will only be the current state before the first call to advance.

Parameters
<T>the type of objects used to represent the current/historical/future states

Definition at line 43 of file History.java.

Constructor & Destructor Documentation

Definition at line 84 of file History.java.

Definition at line 89 of file History.java.

Member Function Documentation

synchronized T org.sleuthkit.autopsy.coreutils.History< T >.advance ( )

advance through the forward states by one, and put the current state in the history. Is a no-op if there are no forward states.

Returns
the state advanced to, or null if there were no forward states.

Definition at line 100 of file History.java.

synchronized void org.sleuthkit.autopsy.coreutils.History< T >.advance ( newState) throws IllegalArgumentException

put the current state in the history and advance to the given state. It is a no-op if the current state is equal to the given state as determined by invoking the equals method. Throws away any forward states.

Parameters
newStatethe new state to advance to
Exceptions
IllegalArgumentExceptionif newState == null

Definition at line 139 of file History.java.

synchronized boolean org.sleuthkit.autopsy.coreutils.History< T >.canAdvance ( )
synchronized boolean org.sleuthkit.autopsy.coreutils.History< T >.canRetreat ( )
synchronized void org.sleuthkit.autopsy.coreutils.History< T >.clear ( )

Definition at line 154 of file History.java.

synchronized ReadOnlyObjectProperty<T> org.sleuthkit.autopsy.coreutils.History< T >.currentState ( )
synchronized ReadOnlyBooleanProperty org.sleuthkit.autopsy.coreutils.History< T >.getCanAdvance ( )

Definition at line 76 of file History.java.

synchronized ReadOnlyBooleanProperty org.sleuthkit.autopsy.coreutils.History< T >.getCanRetreat ( )

Definition at line 80 of file History.java.

synchronized T org.sleuthkit.autopsy.coreutils.History< T >.getCurrentState ( )

Definition at line 60 of file History.java.

synchronized T org.sleuthkit.autopsy.coreutils.History< T >.retreat ( )

retreat through the history states by one, and add the current state to the forward states. Is a no-op if there are no history states.

Returns
the state retreated to, or null if there were no history states.

Definition at line 117 of file History.java.

Referenced by org.sleuthkit.autopsy.coreutils.History< org.sleuthkit.autopsy.timeline.zooming.ZoomParams >.retreat().

Member Data Documentation

final ReadOnlyBooleanWrapper org.sleuthkit.autopsy.coreutils.History< T >.canAdvance = new ReadOnlyBooleanWrapper()
private

Definition at line 55 of file History.java.

final ReadOnlyBooleanWrapper org.sleuthkit.autopsy.coreutils.History< T >.canRetreat = new ReadOnlyBooleanWrapper()
private

Definition at line 58 of file History.java.

final ReadOnlyObjectWrapper<T> org.sleuthkit.autopsy.coreutils.History< T >.currentState = new ReadOnlyObjectWrapper<>()
private

Definition at line 52 of file History.java.

final ObservableStack<T> org.sleuthkit.autopsy.coreutils.History< T >.forwardStack = new ObservableStack<>()
private
final ObservableStack<T> org.sleuthkit.autopsy.coreutils.History< T >.historyStack = new ObservableStack<>()
private

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.