public abstract static class JFXMasonryPane.LayoutMode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.jfoenix.controls.JFXMasonryPane.BinPackingLayout |
BIN_PACKING |
static com.jfoenix.controls.JFXMasonryPane.MasonryLayout |
MASONRY |
Constructor and Description |
---|
LayoutMode() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<javafx.geometry.BoundingBox> |
fillGrid(int[][] matrix,
java.util.List<javafx.scene.layout.Region> children,
double cellWidth,
double cellHeight,
int limitRow,
int limitCol,
double gutterX,
double gutterY) |
protected int[][] |
fillMatrix(int[][] matrix,
int id,
double row,
double col,
double width,
double height) |
protected double |
getBLockHeight(javafx.scene.layout.Region region) |
protected double |
getBLockWidth(javafx.scene.layout.Region region) |
protected javafx.geometry.BoundingBox |
getFreeArea(int[][] matrix,
int x,
int y,
javafx.scene.layout.Region block,
double cellWidth,
double cellHeight,
int limitRow,
int limitCol,
double gutterX,
double gutterY)
returns the available box at the cell (x,y) of the grid that fits the block if existed
|
protected boolean |
validHeight(javafx.geometry.BoundingBox box,
javafx.scene.layout.Region region,
double cellH,
double gutterX,
double gutterY) |
protected boolean |
validWidth(javafx.geometry.BoundingBox box,
javafx.scene.layout.Region region,
double cellW,
double gutterX,
double gutterY) |
public static final com.jfoenix.controls.JFXMasonryPane.MasonryLayout MASONRY
public static final com.jfoenix.controls.JFXMasonryPane.BinPackingLayout BIN_PACKING
protected abstract java.util.List<javafx.geometry.BoundingBox> fillGrid(int[][] matrix, java.util.List<javafx.scene.layout.Region> children, double cellWidth, double cellHeight, int limitRow, int limitCol, double gutterX, double gutterY)
protected javafx.geometry.BoundingBox getFreeArea(int[][] matrix, int x, int y, javafx.scene.layout.Region block, double cellWidth, double cellHeight, int limitRow, int limitCol, double gutterX, double gutterY)
x
- y
- block
- protected double getBLockWidth(javafx.scene.layout.Region region)
protected double getBLockHeight(javafx.scene.layout.Region region)
protected boolean validWidth(javafx.geometry.BoundingBox box, javafx.scene.layout.Region region, double cellW, double gutterX, double gutterY)
protected boolean validHeight(javafx.geometry.BoundingBox box, javafx.scene.layout.Region region, double cellH, double gutterX, double gutterY)
protected int[][] fillMatrix(int[][] matrix, int id, double row, double col, double width, double height)