Package zleurtor.scanmanager.view.gui
Class TableConstraints
java.lang.Object
zleurtor.scanmanager.view.gui.TableConstraints
The constraints used to render components contained in a table layout.
- Author:
- Zleurtor
-
Constructor Summary
ConstructorsConstructorDescriptionTableConstraints
(int theRow, int theColumn, int theWidth, int theHeight) Constructs a new table layout constraints for the specified row, column, width and height. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Returns the column at which the component shall be start.final int
Returns the number of cells occupied by the component vertically.final int
getRow()
Returns the row at which the component shall be start.final int
getWidth()
Returns the number of cells occupied by the component horizontally.
-
Constructor Details
-
TableConstraints
public TableConstraints(int theRow, int theColumn, int theWidth, int theHeight) Constructs a new table layout constraints for the specified row, column, width and height.- Parameters:
theRow
- The row at which the component shall be start.theColumn
- The column at which the component shall be start.theWidth
- The number of cells occupied by the component horizontally.theHeight
- The number of cells occupied by the component vertically.
-
-
Method Details
-
getRow
public final int getRow()Returns the row at which the component shall be start.- Returns:
- The row at which the component shall be start.
-
getColumn
public final int getColumn()Returns the column at which the component shall be start.- Returns:
- The column at which the component shall be start.
-
getWidth
public final int getWidth()Returns the number of cells occupied by the component horizontally.- Returns:
- The number of cells occupied by the component horizontally.
-
getHeight
public final int getHeight()Returns the number of cells occupied by the component vertically.- Returns:
- The number of cells occupied by the component vertically.
-