Example #1
0
 @Override
 public void setWidth(double width) {
   super.setWidth(width);
   super.setHeight(width);
   setRadius(width / 2);
 }
Example #2
0
 @Override
 public void setHeight(double height) {
   super.setHeight(height);
   super.setWidth(height);
   setRadius(height / 2);
 }