Package | Description |
---|---|
de.smarten.tsuro.shared.gui |
Modifier and Type | Method and Description |
---|---|
TileImageView |
GuiHelper.addTile(int position,
int tileId,
Rotation rotation,
TileGridPane tileGridPane)
adds a TileImageView to a position on a given pane.
|
TileImageView |
GuiHelper.addTile(int position,
Tile tile,
TileGridPane tileGridPane)
adds a TileImageView to a position on a given pane.
|
TileImageView |
GuiHelper.addTile(Position position,
int tileId,
Rotation rotation,
TileGridPane tileGridPane)
adds a TileImageView to a position on a given pane.
|
TileImageView |
GuiHelper.addTile(Position position,
Tile tile,
TileGridPane tileGridPane)
adds a tile to a position on a given pane.
|
void |
GuiHelper.bindTileScaleToPane(TileImageView tileImageView,
TileGridPane tileGridPane)
binds the height and width properties of a
TileImageView so they fit the cell size |
void |
GuiHelper.calculateAbsoluteLayout(TileGridPane... tileGridPanes)
Calculates and sets the absolute sizes of the padding, gaps, and cells for a given amount of TileGridPanes
|
void |
GuiHelper.calculateRowCountAndColCountFromSize(TileGridPane tileGridPane)
When only the amount of elements that need to fit into a
TileGridPane is known,
this method calculates the amount of rows and columns the TileGridPane needs to have to maximize the area of each cell,
based on the height and width the TileGridPane can utilize |
javafx.scene.shape.Rectangle[][] |
GuiHelper.fillGridWithEmptyWaypoints(TileGridPane tileGridPane)
fills a given
TileGridPane with rectangles. |
ArrayList<Gate> |
GuiHelper.getBorderGatesFromPosition(TileGridPane tileGridPane,
Position position) |
void |
GuiHelper.initGridPaneConstraints(TileGridPane tileGridPane)
Sets up the correct height and width of the rows and columns according to their amount for a given TileGridPane
|
void |
GuiHelper.removeRectanglesFromTileGridPane(TileGridPane tileGridPane)
removes all
Rectangle s from a given TileGridPane |
void |
GuiHelper.setPosOnCell(javafx.scene.Node node,
TileGridPane tileGridPane,
Position position,
Gate gate,
double offsetParallel,
double offsetOrthogonal)
places a node in a certain alignment to a gate in a cell of a given
TileGridPane |
Copyright © 2017 smarTen. All rights reserved.