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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRowColumnLayout(int hgap, int vgap, int orientation, int maxSize) Constructs a new RowColumnLayout -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) preferredLayoutSize(Container parent) voidvoidsetMaxSize(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:
addLayoutComponentin interfaceLayoutManager- See Also:
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager- See Also:
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager- See Also:
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager- See Also:
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager- See Also:
-
setMaxSize
public void setMaxSize(int maxSize) - Parameters:
maxSize-
-