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

3
LINES

< > BotCompany Repo | #1024533 // zeroToOneDoubleRangeFromRangeSlider

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

Transpiled version (2867L) is out of date.

1  
static DoubleRange zeroToOneDoubleRangeFromRangeSlider(int max, RangeSlider slider) {
2  
  ret swing(func -> DoubleRange { DoubleRange(doubleRatio(slider.getValue(), max), doubleRatio(slider.getUpperValue(), max)) });
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024533
Snippet name: zeroToOneDoubleRangeFromRangeSlider
Eternal ID of this version: #1024533/3
Text MD5: eed196a33924147a06a8ab8babe5a45c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-17 17:21:19
Source code size: 218 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 319
Version history: 2 change(s)
Referenced in: [show references]