Package ghidra.util.layout
Class RowColumnLayout
java.lang.Object
ghidra.util.layout.RowColumnLayout
- All Implemented Interfaces:
LayoutManager
This layout arranges components in rows, putting as many components as possible on a
row and using as many rows as necessary. All components are sized the same, the largest width
and the largest height of all components. The components prefer to be layout as close to
a square as possible.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionRowColumnLayout
(int hgap, int vgap, int orientation, int maxSize) Constructs a new RowColumnLayout -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
void
setMaxSize
(int maxSize)
-
Field Details
-
ROW
public static final int ROW- See Also:
-
COLUMN
public static final int COLUMN- See Also:
-
LEFT_TO_RIGHT
public static final int LEFT_TO_RIGHT- See Also:
-
TOP_TO_BOTTOM
public static final int TOP_TO_BOTTOM- See Also:
-
-
Constructor Details
-
RowColumnLayout
public RowColumnLayout(int hgap, int vgap, int orientation, int maxSize) Constructs a new RowColumnLayout- Parameters:
hgap
- the gap (in pixels) between columnsvgap
- the gap (in pixels) between rowsorientation
- either ROW or COLUMN. If ROW, components are layed out in rows up to prefered width, using as many rows a necessary. If COLUMN, components are layed out in columns up to the prefered height, using as many columns as necessary.maxSize
-
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
- See Also:
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- See Also:
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- See Also:
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- See Also:
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
- See Also:
-
setMaxSize
public void setMaxSize(int maxSize) - Parameters:
maxSize
-
-