1 | static Rect textComponent_substringRect(final JTextComponent tc, final int startIndex, final int endIndex) { |
2 | ret swing(func -> Rect { |
3 | mergeRects(toRect(tc.modelToView(startIndex)), toRect(tc.modelToView(endIndex))) |
4 | }); |
5 | } |
6 | |
7 | static Rect textComponent_substringRect(final JTextComponent tc, IntRange charRange) { |
8 | ret charRange == null ? null |
9 | : textComponent_substringRect(tc, charRange.start, charRange.end); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015605 |
Snippet name: | textComponent_substringRect |
Eternal ID of this version: | #1015605/7 |
Text MD5: | 8e59f7db9852c395b8ba2eedeb3c1045 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-19 19:39:03 |
Source code size: | 431 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 370 / 418 |
Version history: | 6 change(s) |
Referenced in: | [show references] |