Package ghidra.util.layout
Class PairLayout
java.lang.Object
ghidra.util.layout.PairLayout
- All Implemented Interfaces:
LayoutManager
LayoutManger for arranging components into exactly two columns. The right column and the
left column may have differing widths. Also, each row is the same height,
which is the largest of all rows.
-
Constructor Summary
ConstructorDescriptionPairLayout
(int vgap, int hgap) Constructs a new PairLayout.PairLayout
(int vgap, int hgap, int minimumRightColumnWidth) Constructs a new PairLayout. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
-
Constructor Details
-
PairLayout
public PairLayout() -
PairLayout
public PairLayout(int vgap, int hgap) Constructs a new PairLayout.- Parameters:
vgap
- the gap (in pixels) between rows.hgap
- the gap (in pixels) between the two columns.
-
PairLayout
public PairLayout(int vgap, int hgap, int minimumRightColumnWidth) Constructs a new PairLayout.- Parameters:
vgap
- the gap (in pixels) between rows.hgap
- the gap (in pixels) between the two columns.minimumRightColumnWidth
- specifies the minimum width of the second column.
-
-
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
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-