Package ghidra.util.layout
Class ThreeColumnLayout
java.lang.Object
ghidra.util.layout.ThreeColumnLayout
- All Implemented Interfaces:
LayoutManager
LayoutManger for arranging components into exactly three columns. The first and last column
are statically sized to be the max preferred width of those columns. The middle column's width
will vary as the panel is resized.
This layout works well for a panel that has rows of labels followed by a field and followed by a trailing component like a button group.
-
Constructor Summary
ConstructorsConstructorDescriptionThreeColumnLayout(int vgap, int[] hgaps, int[] minPreferredWidths) ThreeColumnLayout(int vgap, int hgap1, int hgap2) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) preferredLayoutSize(Container parent) void
-
Constructor Details
-
ThreeColumnLayout
public ThreeColumnLayout() -
ThreeColumnLayout
public ThreeColumnLayout(int vgap, int hgap1, int hgap2) -
ThreeColumnLayout
public ThreeColumnLayout(int vgap, int[] hgaps, int[] minPreferredWidths)
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-