Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1033815 // tempSetStroke

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (31L/1K).

static AutoCloseable tempSetStroke(Graphics2D g, Stroke s) {
  Stroke oldStroke = g.getStroke();
  g.setStroke(s);
  ret -> g.setStroke(oldStroke);
}

Author comment

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: 81 / 133
Version history: 2 change(s)
Referenced in: [show references]