Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator Class Reference

Inherits Rectangle.

Public Member Functions

 ImageTagCreator (ImageView image)
 
void addNewTagListener (PropertyChangeListener listener)
 
void disconnect ()
 

Private Member Functions

void defaultSettings ()
 

Private Attributes

final Runnable disconnectRunnable
 
final double minArea
 
final EventHandler< MouseEvent > mouseDragged
 
final EventHandler< MouseEvent > mousePressed
 
final EventHandler< MouseEvent > mouseReleased
 
final PropertyChangeSupport pcs = new PropertyChangeSupport(this)
 
double rectangleOriginX
 

Static Private Attributes

static final double LINE_THICKNESS_PERCENT = 1.5
 

Detailed Description

Creates image tags. This class attaches itself to a source image, waiting for mouse press, mouse drag, and mouse release events. Upon a mouse release event, any listeners are updated with the portable description of the new tag boundaries (ImageTagRegion).

Definition at line 36 of file ImageTagCreator.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.ImageTagCreator ( ImageView  image)

Adds tagging support to an image, where the 'tag' rectangle will be the specified color.

Parameters
imageImage to tag

Ensure the rectangle is contained within image boundaries and that the line thickness is kept within bounds.

Definition at line 64 of file ImageTagCreator.java.

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.defaultSettings(), and org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.rectangleOriginX.

Member Function Documentation

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.addNewTagListener ( PropertyChangeListener  listener)

Registers a PCL for new tag events. Listeners are updated with a portable description (ImageTagRegion) of the new tag, which represent the rectangle boundaries.

Parameters
listener

Definition at line 161 of file ImageTagCreator.java.

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.defaultSettings ( )
private

Reset the rectangle to default dimensions.

Definition at line 175 of file ImageTagCreator.java.

Referenced by org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.ImageTagCreator().

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.disconnect ( )

Removes itself from mouse events on the source image.

Definition at line 168 of file ImageTagCreator.java.

Member Data Documentation

final Runnable org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.disconnectRunnable
private

Definition at line 56 of file ImageTagCreator.java.

final double org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.LINE_THICKNESS_PERCENT = 1.5
staticprivate

Definition at line 44 of file ImageTagCreator.java.

final double org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.minArea
private

Definition at line 45 of file ImageTagCreator.java.

final EventHandler<MouseEvent> org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.mouseDragged
private

Definition at line 51 of file ImageTagCreator.java.

final EventHandler<MouseEvent> org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.mousePressed
private

Definition at line 50 of file ImageTagCreator.java.

final EventHandler<MouseEvent> org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.mouseReleased
private

Definition at line 52 of file ImageTagCreator.java.

final PropertyChangeSupport org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.pcs = new PropertyChangeSupport(this)
private

Definition at line 48 of file ImageTagCreator.java.

double org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagCreator.rectangleOriginX
private

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

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