Autopsy  4.18.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 ImageTagsGroup.java.

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.

Parameters
fclPCL to be notified which Image tag has been selected.

Definition at line 79 of file ImageTagsGroup.java.

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

Clears the current focus

Definition at line 95 of file ImageTagsGroup.java.

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

Get the image tag that current has focus.

Returns
ImageTag instance or null if no tag is in focus.

Definition at line 88 of file ImageTagsGroup.java.

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

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.

Parameters
coordinateUser mouse press location
Returns
The tag to give focus

Definition at line 110 of file ImageTagsGroup.java.

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)
private

Notifies the logical image that it is in focus.

Parameters
n

Definition at line 142 of file ImageTagsGroup.java.

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)
private

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

Parameters
n

Definition at line 132 of file ImageTagsGroup.java.

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

Member Data Documentation

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

Definition at line 44 of file ImageTagsGroup.java.

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

Definition at line 45 of file ImageTagsGroup.java.


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

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