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

Inherits Group.

Public Member Functions

 ImageTagsGroup (Node backDrop)
void addFocusChangeListener (PropertyChangeListener fcl)
void clearFocus ()
ImageTag getFocus ()

Private Member Functions

ImageTag getTagToSelect (Point2D coordinate)
void requestFocus (ImageTag n)
void resetFocus (ImageTag n)

Private Attributes

volatile ImageTag currentFocus
final EventDispatchChainImpl NO_OP_CHAIN = new EventDispatchChainImpl()
final PropertyChangeSupport pcs = new PropertyChangeSupport(this)

Detailed Description

Manages the focus and z-ordering of ImageTags. Only one image tag may be selected at a time. Image tags show their 8 edit "handles" upon selection (see ImageTag class for more details) and get the highest z-ordering to make editing easier. This class is responsible for setting and dropping focus as the user navigates from tag to tag. The ImageTag is treated as a logical unit, however it's underlying representation consists of the physical rectangle and the 8 edit handles. JavaFX will report selection on the Node level (so either the Rectangle, or a singe edit handle), which makes keeping the entire image tag in focus a non-trivial problem.

Definition at line 42 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.ImageTagsGroup ( Node  backDrop)

Member Function Documentation

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.addFocusChangeListener ( PropertyChangeListener  fcl)

Subscribe to focus change events on Image tags.

fclPCL to be notified which Image tag has been selected.

Definition at line 79 of file

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.clearFocus ( )

Clears the current focus

Definition at line 95 of file

ImageTag org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.getFocus ( )

Get the image tag that current has focus.

ImageTag instance or null if no tag is in focus.

Definition at line 88 of file

ImageTag org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.getTagToSelect ( Point2D  coordinate)

Find which tag to select on a user mouse press. If multiple tags are overlapping, pick the smallest one that is determined by the L + W of the tag sides.

coordinateUser mouse press location
The tag to give focus

Definition at line 110 of file

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTag.getHeight(), and org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTag.getWidth().

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

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.requestFocus ( ImageTag  n)

Notifies the logical image that it is in focus.


Definition at line 142 of file

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagControls.FOCUSED.

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

void org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.resetFocus ( ImageTag  n)

Notifies the logical image tag that it is no longer in focus.


Definition at line 132 of file

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagControls.NOT_FOCUSED.

Member Data Documentation

volatile ImageTag org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.currentFocus
final EventDispatchChainImpl org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsGroup.NO_OP_CHAIN = new EventDispatchChainImpl()

Definition at line 44 of file

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

Definition at line 45 of file

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

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.