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
ConstructorsConstructorDescriptionPairLayout(int vgap, int hgap) Constructs a new PairLayout.PairLayout(int vgap, int hgap, int minimumRightColumnWidth) Constructs a new PairLayout. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidlayoutContainer(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:
addLayoutComponentin interfaceLayoutManager- See Also:
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager- See Also:
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager- See Also:
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-