(double width)
| 511 | } |
| 512 | |
| 513 | private double restrictedWidth(double width) { |
| 514 | double retWidth = width; |
| 515 | if (width < MIN_WIDTH) { |
| 516 | retWidth = MIN_WIDTH; |
| 517 | } |
| 518 | else if (width > MAX_WIDTH) { |
| 519 | retWidth = MAX_WIDTH; |
| 520 | } |
| 521 | return retWidth; |
| 522 | } |
| 523 | |
| 524 | private double restrictedHeight(double height) { |
| 525 | double retHeight = height; |
no outgoing calls
no test coverage detected