docs: private void initGraphics() {
          // Set initial size
          if (Double.compare(gauge.getPrefWidth(), 0.0) <= 0 || Double.compare(gauge.getPrefHeight(), 0.0) <= 0 ||
              Double.compare(gauge.getWidth(), 0.0) <= 0 || Double.compare(gauge.getHeight(), 0.0) <= 0) {
              if (gauge.getPrefWidth() > 0 && gauge.getPrefHeight() > 0) {
                  gauge.setPrefSize(gauge.getPrefWidth(), gauge.getPrefHeight());
              } else {
                  gauge.setPrefSize(PREFERRED_WIDTH, PREFERRED_HEIGHT);
              }
          }
  
          batteryBackground = new Path();
          batteryBackground.setFillRule(FillRule.EVEN_ODD);
          batteryBackground.setStroke(null);
  
          battery = new Path();
          battery.setFillRule(FillRule.EVEN_ODD);
          battery.setStroke(null);
  
          valueText = new Text(String.format(locale, "%.0f%%", gauge.getCurrentValue()));
          valueText.setVisible(gauge.isValueVisible());
          valueText.setManaged(gauge.isValueVisible());
  
          // Add all nodes
          pane = new Pane();
          pane.setBorder(new Border(new BorderStroke(gauge.getBorderPaint(), BorderStrokeStyle.SOLID, CornerRadii.EMPTY, new BorderWidths(1))));
          pane.setBackground(new Background(new BackgroundFill(gauge.getBackgroundPaint(), CornerRadii.EMPTY, Insets.EMPTY)));
          pane.getChildren().setAll(batteryBackground, battery, valueText);
  
          getChildren().setAll(pane);
      }