Package net.runelite.client.ui
Class DynamicGridLayout
- java.lang.Object
-
- java.awt.GridLayout
-
- net.runelite.client.ui.DynamicGridLayout
-
- All Implemented Interfaces:
LayoutManager
,Serializable
public class DynamicGridLayout extends GridLayout
Grid layout implementation with support for cells with unequal size. See https://www.javaworld.com/article/2077486/core-java/java-tip-121--flex-your-grid-layout.html- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicGridLayout()
DynamicGridLayout(int rows, int cols)
DynamicGridLayout(int rows, int cols, int hgap, int vgap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
layoutContainer(Container parent)
Dimension
minimumLayoutSize(Container parent)
Dimension
preferredLayoutSize(Container parent)
-
Methods inherited from class java.awt.GridLayout
addLayoutComponent, getColumns, getHgap, getRows, getVgap, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
-
-
-
-
Method Detail
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Overrides:
preferredLayoutSize
in classGridLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Overrides:
minimumLayoutSize
in classGridLayout
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classGridLayout
-
-