public void setMinimalThickness(int thickness) {
    if (thickness < 1) thickness = 1;
    if (myMin != thickness) {
      myMin = thickness;
      invalidate();
    }
  }
public void setMinimalThickness(int thickness)