Returns the first font of the list that is not null, or defaultFont if both are null
(Font font1, Font font2)
| 2553 | |
| 2554 | /** Returns the first font of the list that is not null, or defaultFont if both are null */ |
| 2555 | Font nonNullFont(Font font1, Font font2) { |
| 2556 | if (font1 != null) |
| 2557 | return font1; |
| 2558 | else if (font2 != null) |
| 2559 | return font2; |
| 2560 | else return |
| 2561 | defaultFont; |
| 2562 | } |
| 2563 | |
| 2564 | /** Zooms to a range given in pixels and updates the image */ |
| 2565 | void zoomToRect(Rectangle r) { |
no outgoing calls
no test coverage detected