docs: public void setScale(int scale) {
          if ((scale < 1) || (scale > 256)) {
              throw new IllegalArgumentException("Scale must be between 1 and 256");
          }
          int oldScale = this.scale.getAndSet(scale);
          if (oldScale != scale) {
              repaint();
              if (!autoScroll.get()) {
                  setSize(getPreferredSize());
              }
          }
      }