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

Constructor & Destructor Documentation

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

Main constructor for the Overlay.

Definition at line 35 of file BaseMessageOverlay.java.

Member Function Documentation

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

Definition at line 45 of file BaseMessageOverlay.java.

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.

Parameters
gThe graphics object.
widthThe width.
heightThe height.

Definition at line 76 of file BaseMessageOverlay.java.

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.

Parameters
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 BaseMessageOverlay.java.

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

Sets the message to be displayed in the child jlabel.

Parameters
messageThe message to be displayed.

Definition at line 64 of file BaseMessageOverlay.java.

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.

Parameters
visibleWhether or not it is visible.

Definition at line 55 of file BaseMessageOverlay.java.

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

Member Data Documentation

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

Definition at line 29 of file BaseMessageOverlay.java.

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

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.