code: @Override protected void resize() {
          double width  = clock.getWidth() - clock.getInsets().getLeft() - clock.getInsets().getRight();
          double height = clock.getHeight() - clock.getInsets().getTop() - clock.getInsets().getBottom();
          size          = width < height ? width : height;
  
          if (size > 0) {
              rotationRadius = size * 0.93;
  
              pane.setMaxSize(size, size);
              pane.relocate((clock.getWidth() - size) * 0.5, (clock.getHeight() - size) * 0.5);
  
              dropShadow.setRadius(0.008 * size);
              dropShadow.setOffsetY(0.008 * size);
  
              innerShadow.setRadius(0.016 * size);
              innerShadow.setOffsetY(0.004 * size);
  
              clip.setRadius(size * 0.5);
  
              tickCanvas.setWidth(size * 2.5);
              tickCanvas.setHeight(size * 2.5);
              tickCanvas.setClip(clip);
  
              needle.setStrokeWidth(size * 0.008);
              needle.setStartX(size * 0.5);
              needle.setEndX(size * 0.5);
              needle.setStartY(0);
              needle.setEndY(size);
          }
      }
docs: ******************** Resizing ******************************************