Title: Improve number format in SwingNumberWidget by imagejan · Pull Request #54 · scijava/scijava-ui-swing · GitHub
Open Graph Title: Improve number format in SwingNumberWidget by imagejan · Pull Request #54 · scijava/scijava-ui-swing
X Title: Improve number format in SwingNumberWidget by imagejan · Pull Request #54 · scijava/scijava-ui-swing
Description: This pull request depends on scijava/scijava-common#405 and supersedes #52. It includes the changes by @BoudewijnvanLangerak (in #52) as a squashed commit. Changes can be tested with SwingNumberWidgetDemo added here, or with the following script: // Automatically generated format #@ Double (value=0.0000123, persist=false) a #@ Double (value=0.000123, persist=false) b #@ Double (value=0.00123, persist=false) c #@ Double (value=0.0123, persist=false) d #@ Double (value=0.123, persist=false) e #@ Double (value=1.23, persist=false) f #@ Double (value=123, persist=false) g #@ Double (value=1, min=0.0, max=10.0, stepSize=0.001, persist=false) h // Specified format #@ Double (value=0.0123, persist=false, style="format:#.##") i #@ Double (value=0.0123, persist=false, style="format:#.00") j #@ Double (value=123.45, persist=false, style="format:#####.#####") k #@ Double (value=123.45, persist=false, style="format:00000.00000") l // Sliders and scroll bars #@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=slider) m #@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style="slider,format:0.0000") n #@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style="scroll bar") o #@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style="scroll bar,format:0.0000") p Here's a visual comparison before and after the changes in this commit: (Fixes #45.)
Open Graph Description: This pull request depends on scijava/scijava-common#405 and supersedes #52. It includes the changes by @BoudewijnvanLangerak (in #52) as a squashed commit. Changes can be tested with SwingNumberWid...
X Description: This pull request depends on scijava/scijava-common#405 and supersedes #52. It includes the changes by @BoudewijnvanLangerak (in #52) as a squashed commit. Changes can be tested with SwingNumberWid...
Opengraph URL: https://github.com/scijava/scijava-ui-swing/pull/54
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:251498aa-75d3-c41d-d2c0-75046f397373 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC8C:25BBB7:27BB04E:382557A:6978FC6E |
| html-safe-nonce | 3aebc9bbbb9028f31f14d36dd1518ffb963acf6030c3aeb4fca012dbe2dabf86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzhDOjI1QkJCNzoyN0JCMDRFOjM4MjU1N0E6Njk3OEZDNkUiLCJ2aXNpdG9yX2lkIjoiNjI2ODY1NTczODM4MTk5MTAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b59bc21493cb2cee4bf209d7c6bba523f689ef5d5448a931f24897bb312838f9 |
| hovercard-subject-tag | pull_request:513639359 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/scijava/scijava-ui-swing/pull/54/files |
| twitter:image | https://avatars.githubusercontent.com/u/2033938?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2033938?s=400&v=4 |
| og:image:alt | This pull request depends on scijava/scijava-common#405 and supersedes #52. It includes the changes by @BoudewijnvanLangerak (in #52) as a squashed commit. Changes can be tested with SwingNumberWid... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d9b384ce19e0ac9756580c70eae9a3359939e77ff05c731561090d13085b2b7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/scijava/scijava-ui-swing git https://github.com/scijava/scijava-ui-swing.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 19014728 |
| octolytics-dimension-repository_nwo | scijava/scijava-ui-swing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19014728 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-ui-swing |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56ad33f6fdc0d0fb49c96b3c46ed74c55d926471 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width