Libraryless. Click here for Pure Java version (31L/1K).
1 | static AutoCloseable tempSetStroke(Graphics2D g, Stroke s) { |
2 | Stroke oldStroke = g.getStroke(); |
3 | g.setStroke(s); |
4 | ret -> g.setStroke(oldStroke); |
5 | } |
Began life as a copy of #1015417
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033815 |
Snippet name: | tempSetStroke |
Eternal ID of this version: | #1033815/3 |
Text MD5: | ab4e8058ec799e932d7b218da00c4b18 |
Transpilation MD5: | 71dd5fed1e387f2474830b028cee5f54 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-05 06:28:11 |
Source code size: | 153 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 149 / 224 |
Version history: | 2 change(s) |
Referenced in: | [show references] |