Grid Pane
Defines a LayoutView that orders components in a grid structure.
Parameters
Generic ComponentView.
Horizontal coordinate for this GridPane. Default: 0.
Vertical coordinate for this GridPane. Default: 0.
Initial column count.
Initial row count.
Spacing between rows and columns. Default: DEFAULT_GRID_SPACING.
Whether the GridPane should anchor in the center (true
) or top-Left (false
). Default: true
.
Initial visual for this GridPane. Default: Visual.EMPTY.
Constructors
Types
Functions
Adds the desired amount of columns between column columnIndex - 1 and columnIndex. New columns get null
-initialized.
Returns centering mode as an Alignment of the specified cell.
Returns the set column width for the given column.
Returns the set row height for the given row.
Adds an offset to this ComponentView's Position.
Removes the desired column in the grid. Removes all, views in the column. If there is no column left in the grid, it gets trimmed to size 0x0.
Removes all empty columns e.g. all rows that have no views in their cells.
Removes all empty rows e.g. all rows that have no views in their cells.
Removes this component from its parent.
Repositions this ComponentView to the specified coordinates.
Rotates this ComponentView by the given number of degrees.
Scales this ComponentView by the given scalar.
Scales this ComponentView's width by the given scalar.
Scales this ComponentView's height by the given scalar.
Restores automatic resizing behavior for desired column.
Restores automatic resizing behavior for all columns.
Restores automatic resizing behavior for desired row.
Restores automatic resizing behavior for all rows.
Sets centering mode of desired grid cell with given Alignment. Overrides existing mode in this cell.
Sets centering mode of all cells in the grid with given Alignment. Overrides existing modes of all cells.
Sets centering mode of desired column in grid with given Alignment. Overrides existing mode in the whole column.
Manually set column width of one column. Overrides automatic resizing based on content from this column.
Manually set column width of all columns. Overrides automatic resizing based on content from this column.
Sets centering mode of desired row in grid with given Alignment. Overrides existing mode in the whole row.
Manually set row height of one row. Overrides automatic resizing based on content from this row.
Manually set row height of all rows. Overrides automatic resizing based on content from this row.
Puts the ComponentView to the back inside its parent and Changes its zIndex accordingly.
Puts the ComponentView to the front inside its parent and Changes its zIndex accordingly.
Properties
The actual height for this ComponentView considering scale.
Horizontal position of this ComponentView considering scale.
Vertical position of this ComponentView considering scale.
The actual width for this ComponentView considering scale.
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not.
Property for the height of this ComponentView.
Controls if user input events cause input functions of this ComponentView to get invoked.
Property that controls if user input events cause input functions of this ComponentView to get invoked.
Controls whether this ComponentView is focusable or not.
Property that controls whether this ComponentView is focusable or not.
Property for the visibility of this ComponentView.
Returns a CoordinatePlain containing the component's corner Coordinates and its layout bounds.
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns true
for the given DragEvent.
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture.
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture.
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus.
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus.
Gets invoked with a KeyEvent whenever a Character is typed while this ComponentView has focus. Gets invoked after onKeyPressed.
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. Gets invoked after onMousePressed and onMouseReleased.
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView.
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView.
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView.
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView.
Gets invoked with a ScrollEvent whenever the mouse wheel is turned while the mouse is inside this ComponentView.
Property for the opacity of this ComponentView.
Property for the horizontal position of this ComponentView.
Property for the vertical position of this ComponentView.
Property for the rotation of this ComponentView in degrees.
Property for the horizontal scale of this ComponentView.
Property for the vertical scale of this ComponentView.
Property for the width of this ComponentView.
Property for the order of ComponentView inside of parent.#