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

Inherits FlowLayout.

Public Member Functions

 WrapLayout ()
 
 WrapLayout (int align)
 
 WrapLayout (int align, int hgap, int vgap)
 
Dimension minimumLayoutSize (Container target)
 
Dimension preferredLayoutSize (Container target)
 

Private Member Functions

void addRow (Dimension dim, int rowWidth, int rowHeight)
 
Dimension layoutSize (Container target, boolean preferred)
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

FlowLayout subclass that fully supports wrapping of components.

Originally written by Rob Camick https://tips4java.wordpress.com/2008/11/06/wrap-layout/

Definition at line 35 of file WrapLayout.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.uicomponents.WrapLayout.WrapLayout ( )

Constructs a new WrapLayout with a left alignment and a default 5-unit horizontal and vertical gap.

Definition at line 42 of file WrapLayout.java.

org.sleuthkit.autopsy.uicomponents.WrapLayout.WrapLayout ( int  align)

Constructs a new FlowLayout with the specified alignment and a default 5-unit horizontal and vertical gap. The value of the alignment argument must be one of WrapLayout, WrapLayout, or WrapLayout.

Parameters
alignthe alignment value

Definition at line 54 of file WrapLayout.java.

org.sleuthkit.autopsy.uicomponents.WrapLayout.WrapLayout ( int  align,
int  hgap,
int  vgap 
)

Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.

The value of the alignment argument must be one of WrapLayout, WrapLayout, or WrapLayout.

Parameters
alignthe alignment value
hgapthe horizontal gap between components
vgapthe vertical gap between components

Definition at line 70 of file WrapLayout.java.

Member Function Documentation

void org.sleuthkit.autopsy.uicomponents.WrapLayout.addRow ( Dimension  dim,
int  rowWidth,
int  rowHeight 
)
private
Dimension org.sleuthkit.autopsy.uicomponents.WrapLayout.layoutSize ( Container  target,
boolean  preferred 
)
private

Returns the minimum or preferred dimension needed to layout the target container.

Parameters
targettarget to get layout size for
preferredshould preferred size be calculated
Returns
the dimension to layout the target container

Definition at line 113 of file WrapLayout.java.

References org.sleuthkit.autopsy.uicomponents.WrapLayout.addRow().

Referenced by org.sleuthkit.autopsy.uicomponents.WrapLayout.minimumLayoutSize(), and org.sleuthkit.autopsy.uicomponents.WrapLayout.preferredLayoutSize().

Dimension org.sleuthkit.autopsy.uicomponents.WrapLayout.minimumLayoutSize ( Container  target)

Returns the minimum dimensions needed to layout the visible components contained in the specified target container.

Parameters
targetthe component which needs to be laid out
Returns
the minimum dimensions to lay out the subcomponents of the specified container

Definition at line 98 of file WrapLayout.java.

References org.sleuthkit.autopsy.uicomponents.WrapLayout.layoutSize().

Dimension org.sleuthkit.autopsy.uicomponents.WrapLayout.preferredLayoutSize ( Container  target)

Returns the preferred dimensions for this layout given the visible components in the specified target container.

Parameters
targetthe component which needs to be laid out
Returns
the preferred dimensions to lay out the subcomponents of the specified container

Definition at line 84 of file WrapLayout.java.

References org.sleuthkit.autopsy.uicomponents.WrapLayout.layoutSize().

Member Data Documentation

final long org.sleuthkit.autopsy.uicomponents.WrapLayout.serialVersionUID = 1L
staticprivate

Definition at line 37 of file WrapLayout.java.


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.