Java Code Examples for javafx.scene.control.Label#setTranslateX()
The following examples show how to use
javafx.scene.control.Label#setTranslateX() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MapObject.java From quantumjava with BSD 3-Clause "New" or "Revised" License | 5 votes |
public Church(Main.Location loc, StrangeBridge strangeBridge) { super(CHURCH, loc, strangeBridge); Label label = new Label(); label.textProperty().bind(mealsServed.asString()); label.setFont(Font.font("Impact", 12 * Main.SCALE)); label.setTranslateX(-8 * Main.SCALE); label.setTranslateY(3 * Main.SCALE); getChildren().add(label); }
Example 2
Source File: MapObject.java From training with MIT License | 5 votes |
public Church(Main.Location loc) { super(CHURCH, loc); Label label = new Label(); label.textProperty().bind(mealsServed.asString()); label.setFont(Font.font("Impact", 12 * Main.SCALE)); label.setTranslateX(-8 * Main.SCALE); label.setTranslateY(3 * Main.SCALE); getChildren().add(label); }