MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / ArrowLabel

Method ArrowLabel

src/ch/hsr/ogv/view/ArrowLabel.java:63–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

loadTextFieldMethod · 0.95
setWidthMethod · 0.95
calcMinWidthMethod · 0.95
setTranslateMethod · 0.95
showLabelMethod · 0.95
setMaxWidthMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected