()
| 389 | } |
| 390 | |
| 391 | protected void setArrowLabels() { |
| 392 | this.labelStartRight.setTranslateXYZ(-LABEL_SPACING / 3 - 1, this.startPoint.getY(), -this.startEndDistance / 2 + LABEL_SPACING + 15); |
| 393 | |
| 394 | double startLeftWidth = this.labelStartLeft.calcMinWidth(); |
| 395 | startLeftWidth = startLeftWidth < 20 ? 20 : startLeftWidth; |
| 396 | this.labelStartLeft.setTranslateXYZ(startLeftWidth + LABEL_SPACING / 3, this.startPoint.getY(), -this.startEndDistance / 2 + LABEL_SPACING + 15); |
| 397 | |
| 398 | this.labelEndRight.setTranslateXYZ(-LABEL_SPACING / 3 - 1, this.endPoint.getY(), this.startEndDistance / 2 - LABEL_SPACING + 10); |
| 399 | |
| 400 | double endLeftWidth = this.labelEndLeft.calcMinWidth(); |
| 401 | endLeftWidth = endLeftWidth < 20 ? 20 : endLeftWidth; |
| 402 | this.labelEndLeft.setTranslateXYZ(endLeftWidth + LABEL_SPACING / 3, this.endPoint.getY(), this.startEndDistance / 2 - LABEL_SPACING + 10); |
| 403 | } |
| 404 | |
| 405 | public void setColor(Color color) { |
| 406 | this.color = color; |
no test coverage detected