Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay Class Reference

Public Member Functions

 BaseMessageOverlay ()
boolean isVisible ()
void paintOverlay (Graphics g, int width, int height)
void paintOverlay (Graphics g, int parentWidth, int parentHeight, Integer labelMaxWidth)
void setMessage (String message)
void setVisible (boolean visible)

Private Attributes

final JLabel label
boolean visible = false

Detailed Description

Base class for drawing a message overlay. Contains a paint method for painting a JLabel using a java.awt.Graphics object.

Definition at line 28 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.BaseMessageOverlay ( )

Main constructor for the Overlay.

Definition at line 35 of file

Member Function Documentation

boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.isVisible ( )
Whether or not this message overlay should be visible.

Definition at line 45 of file

References org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.visible.

void org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.paintOverlay ( Graphics  g,
int  width,
int  height 

Paints the jlabel at full width and height with the graphics object.

gThe graphics object.
widthThe width.
heightThe height.

Definition at line 76 of file

Referenced by org.sleuthkit.autopsy.datasourcesummary.uiutils.JTablePanel< T >.Overlay.paint().

void org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.paintOverlay ( Graphics  g,
int  parentWidth,
int  parentHeight,
Integer  labelMaxWidth 

Paints the jlabel at full width and height with the graphics object.

gThe graphics object.
parentWidthThe width of the component.
parentHeightThe height of the component.
labelMaxWidthThe maximum width of the label drawn for the overlay. The label will be vertically and horizontally centered.

Definition at line 90 of file

void org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.setMessage ( String  message)

Sets the message to be displayed in the child jlabel.

messageThe message to be displayed.

Definition at line 64 of file

void org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.setVisible ( boolean  visible)

Sets this layer visible when painted. In order to be shown in UI, this component needs to be repainted.

visibleWhether or not it is visible.

Definition at line 55 of file

References org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.visible.

Member Data Documentation

final JLabel org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.label

Definition at line 29 of file

boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.BaseMessageOverlay.visible = false

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.