Package zleurtor.scanmanager.view.gui
Class TableLayout
java.lang.Object
zleurtor.scanmanager.view.gui.TableLayout
- All Implemented Interfaces:
LayoutManager
,LayoutManager2
A graphics layout consisting in a table (like HTML ones) with components that can occupy two (or more) cells.
- Author:
- Zleurtor
-
Constructor Summary
ConstructorsConstructorDescriptionTableLayout
(int theRows, int theColumns, int theHGap, int theVGap) Constructs a new table layout with the specified rows, columns and gap. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addLayoutComponent
(Component comp, Object constraints) final void
addLayoutComponent
(String name, Component comp) Deprecated.final float
getLayoutAlignmentX
(Container target) final float
getLayoutAlignmentY
(Container target) void
invalidateLayout
(Container target) final void
layoutContainer
(Container parent) final Dimension
maximumLayoutSize
(Container parent) final Dimension
minimumLayoutSize
(Container parent) final Dimension
preferredLayoutSize
(Container parent) final void
-
Constructor Details
-
TableLayout
public TableLayout(int theRows, int theColumns, int theHGap, int theVGap) Constructs a new table layout with the specified rows, columns and gap.- Parameters:
theRows
- The number of rows of the layout.theColumns
- The number of columns of the layout.theHGap
- The horizontal gap between two columns.theVGap
- The vertical gap between two rows.
-
-
Method Details
-
addLayoutComponent
Deprecated.- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager2
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
maximumLayoutSize
- Specified by:
maximumLayoutSize
in interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentX
in interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentY
in interfaceLayoutManager2
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
invalidateLayout
- Specified by:
invalidateLayout
in interfaceLayoutManager2
-