(@NotNull TextLine line, float x, float y, @NotNull Paint paint)
| 435 | } |
| 436 | |
| 437 | @NotNull @Contract("_, _, _, _ -> this") |
| 438 | public Canvas drawTextLine(@NotNull TextLine line, float x, float y, @NotNull Paint paint) { |
| 439 | assert line != null : "Can’t drawTextLine with line == null"; |
| 440 | assert paint != null : "Can’t drawTextLine with paint == null"; |
| 441 | try (TextBlob blob = line.getTextBlob();) { |
| 442 | if (blob != null) |
| 443 | drawTextBlob(blob, x, y, paint); |
| 444 | } |
| 445 | return this; |
| 446 | } |
| 447 | |
| 448 | @NotNull @Contract("_ -> this") |
| 449 | public Canvas drawPicture(@NotNull Picture picture) { |
no test coverage detected