()
| 61 | } |
| 62 | |
| 63 | public ArrowLabel() { |
| 64 | this.arrowText = new Text(""); |
| 65 | this.arrowTextField = loadTextField(); |
| 66 | this.container.setStyle("-fx-border-color: transparent;\n" + "-fx-border-width: 1;"); |
| 67 | this.container.setCacheHint(CacheHint.SCALE_AND_ROTATE); |
| 68 | this.container.setDepthTest(DepthTest.ENABLE); |
| 69 | this.container.setAlignment(Pos.CENTER); |
| 70 | this.container.getChildren().add(this.arrowText); |
| 71 | this.container.setMaxWidth(Double.MAX_VALUE); |
| 72 | this.container.setPadding(new Insets(2, 0, 2, 0)); |
| 73 | HBox.setHgrow(this.arrowTextField, Priority.ALWAYS); |
| 74 | setWidth(calcMinWidth()); |
| 75 | setTranslate(); |
| 76 | this.container.getTransforms().add(new Rotate(90, Rotate.X_AXIS)); |
| 77 | this.container.getTransforms().add(new Rotate(180, Rotate.Z_AXIS)); |
| 78 | getChildren().add(this.container); |
| 79 | showLabel(false); |
| 80 | } |
| 81 | |
| 82 | private TextField loadTextField() { |
| 83 | Object loadedPreset = FXMLResourceUtil.loadPreset(Resource.ARROWTEXTFIELD_FXML); // load center textfield preset from fxml file |
nothing calls this directly
no test coverage detected