< prev index next >
modules/graphics/src/main/java/javafx/scene/layout/TilePane.java
Print this page
*** 83,103 ****
* A horizontal tilepane example:
* <pre><code>
* TilePane tile = new TilePane();
* tile.setHgap(8);
* tile.setPrefColumns(4);
! * for (int i = 0; i < 20; i++) {
* tile.getChildren().add(new ImageView(...));
* }
* </code></pre>
* <p>
* A vertical TilePane example:
* <pre><code>
* TilePane tile = new TilePane(Orientation.VERTICAL);
* tile.setTileAlignment(Pos.CENTER_LEFT);
* tile.setPrefRows(10);
! * for (int i = 0; i < 50; i++) {
* tile.getChildren().add(new ImageView(...));
* }
* </code></pre>
*
* The TilePane will attempt to resize each child to fill its tile.
--- 83,103 ----
* A horizontal tilepane example:
* <pre><code>
* TilePane tile = new TilePane();
* tile.setHgap(8);
* tile.setPrefColumns(4);
! * for (int i = 0; i < 20; i++) {
* tile.getChildren().add(new ImageView(...));
* }
* </code></pre>
* <p>
* A vertical TilePane example:
* <pre><code>
* TilePane tile = new TilePane(Orientation.VERTICAL);
* tile.setTileAlignment(Pos.CENTER_LEFT);
* tile.setPrefRows(10);
! * for (int i = 0; i < 50; i++) {
* tile.getChildren().add(new ImageView(...));
* }
* </code></pre>
*
* The TilePane will attempt to resize each child to fill its tile.
*** 167,177 ****
* </table>
* <p>
* Example:
* <pre><code>
* TilePane tilepane = new TilePane();
! * for (int i = 0; i < 20; i++) {
* Label title = new Label(imageTitle[i]):
* Imageview imageview = new ImageView(new Image(imageName[i]));
* TilePane.setAlignment(label, Pos.BOTTOM_RIGHT);
* tilepane.getChildren().addAll(title, imageview);
* }
--- 167,177 ----
* </table>
* <p>
* Example:
* <pre><code>
* TilePane tilepane = new TilePane();
! * for (int i = 0; i < 20; i++) {
* Label title = new Label(imageTitle[i]):
* Imageview imageview = new ImageView(new Image(imageName[i]));
* TilePane.setAlignment(label, Pos.BOTTOM_RIGHT);
* tilepane.getChildren().addAll(title, imageview);
* }
*** 254,264 ****
}
/**
* Creates a TilePane layout with the specified orientation,
* prefColumn/prefRows = 5 and hgap/vgap = 0.
! * @param orientation the direction the tiles should flow & wrap
*/
public TilePane(Orientation orientation) {
super();
setOrientation(orientation);
}
--- 254,264 ----
}
/**
* Creates a TilePane layout with the specified orientation,
* prefColumn/prefRows = 5 and hgap/vgap = 0.
! * @param orientation the direction the tiles should flow & wrap
*/
public TilePane(Orientation orientation) {
super();
setOrientation(orientation);
}
*** 276,286 ****
}
/**
* Creates a TilePane layout with the specified orientation, hgap/vgap,
* and prefRows/prefColumns = 5.
! * @param orientation the direction the tiles should flow & wrap
* @param hgap the amount of horizontal space between each tile
* @param vgap the amount of vertical space between each tile
*/
public TilePane(Orientation orientation, double hgap, double vgap) {
this();
--- 276,286 ----
}
/**
* Creates a TilePane layout with the specified orientation, hgap/vgap,
* and prefRows/prefColumns = 5.
! * @param orientation the direction the tiles should flow & wrap
* @param hgap the amount of horizontal space between each tile
* @param vgap the amount of vertical space between each tile
*/
public TilePane(Orientation orientation, double hgap, double vgap) {
this();
*** 300,310 ****
}
/**
* Creates a TilePane layout with the specified orientation,
* prefColumn/prefRows = 5 and hgap/vgap = 0.
! * @param orientation the direction the tiles should flow & wrap
* @param children The initial set of children for this pane.
* @since JavaFX 8.0
*/
public TilePane(Orientation orientation, Node... children) {
super();
--- 300,310 ----
}
/**
* Creates a TilePane layout with the specified orientation,
* prefColumn/prefRows = 5 and hgap/vgap = 0.
! * @param orientation the direction the tiles should flow & wrap
* @param children The initial set of children for this pane.
* @since JavaFX 8.0
*/
public TilePane(Orientation orientation, Node... children) {
super();
*** 328,338 ****
}
/**
* Creates a TilePane layout with the specified orientation, hgap/vgap,
* and prefRows/prefColumns = 5.
! * @param orientation the direction the tiles should flow & wrap
* @param hgap the amount of horizontal space between each tile
* @param vgap the amount of vertical space between each tile
* @param children The initial set of children for this pane.
* @since JavaFX 8.0
*/
--- 328,338 ----
}
/**
* Creates a TilePane layout with the specified orientation, hgap/vgap,
* and prefRows/prefColumns = 5.
! * @param orientation the direction the tiles should flow & wrap
* @param hgap the amount of horizontal space between each tile
* @param vgap the amount of vertical space between each tile
* @param children The initial set of children for this pane.
* @since JavaFX 8.0
*/
< prev index next >