Libraryless. Click here for Pure Java version (2889L/18K).
1 | svoid rangeSliderSetZeroToOneDoubleRange(RangeSlider slider, int max, DoubleRange r) { |
2 | if (slider != null && r != null) swing { |
3 | slider.setValues(iround(r.start*max), iround(r.end*max)); |
4 | } |
5 | } |
Began life as a copy of #1024533
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: | #1024534 |
Snippet name: | rangeSliderSetZeroToOneDoubleRange |
Eternal ID of this version: | #1024534/1 |
Text MD5: | 900d891f2ef2eb90150a22937345bf62 |
Transpilation MD5: | 4f4ea6d5d0e8026ae528d8d4dbd3e74a |
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 16:58:32 |
Source code size: | 201 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 242 / 331 |
Referenced in: | [show references] |