@@ -52,11 +52,11 @@ public static Node create(
52
52
53
53
54
54
// ImageView of the next tile to place, which has to be shown in large size
55
- ImageView view = new ImageView ();
55
+ ImageView imageView = new ImageView ();
56
56
// we bind the graphical view of the tile to place to the tile itself
57
- view .imageProperty ().bind (tileO .map (tile -> ImageLoader .largeImageForTile (tile .id ())));
58
- view .setFitHeight (ImageLoader .LARGE_TILE_FIT_SIZE );
59
- view .setFitWidth (ImageLoader .LARGE_TILE_FIT_SIZE );
57
+ imageView .imageProperty ().bind (tileO .map (tile -> ImageLoader .largeImageForTile (tile .id ())));
58
+ imageView .setFitHeight (ImageLoader .LARGE_TILE_FIT_SIZE );
59
+ imageView .setFitWidth (ImageLoader .LARGE_TILE_FIT_SIZE );
60
60
61
61
// Text, occupy tile (only visible if textToDisplay is not empty,
62
62
// meaning that the player does not want to do some action)
@@ -67,7 +67,7 @@ public static Node create(
67
67
text .setWrappingWidth (WRAPPING_WIDTH * ImageLoader .LARGE_TILE_FIT_SIZE );
68
68
69
69
// Here we handle the next tile to place
70
- StackPane stackPane = new StackPane (view , text );
70
+ StackPane stackPane = new StackPane (imageView , text );
71
71
stackPane .setId ("next-tile" );
72
72
// if the player clicks on the text, it means that he does not want to place or retake an occupant
73
73
stackPane .setOnMouseClicked (_ -> onOccupantClick .accept (null ));
@@ -93,13 +93,13 @@ public static Node create(
93
93
* @return a node representing the deck
94
94
*/
95
95
private static Node getDeckNode (Tile .Kind kind , ObservableValue <Integer > leftTiles ) {
96
- ImageView image = new ImageView ();
97
- image .setId (kind .toString ());
98
- image .setFitHeight (ImageLoader .NORMAL_TILE_FIT_SIZE );
99
- image .setFitWidth (ImageLoader .NORMAL_TILE_FIT_SIZE );
96
+ ImageView imageView = new ImageView ();
97
+ imageView .setId (kind .toString ());
98
+ imageView .setFitHeight (ImageLoader .NORMAL_TILE_FIT_SIZE );
99
+ imageView .setFitWidth (ImageLoader .NORMAL_TILE_FIT_SIZE );
100
100
Text text = new Text ();
101
101
text .textProperty ().bind (leftTiles .map (String ::valueOf ));
102
- return new StackPane (image , text );
102
+ return new StackPane (imageView , text );
103
103
}
104
104
105
105
}
0 commit comments