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:98599b7c-20c6-af13-964a-0fb91faee90b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C3BC:12D77E:3A9A906:521A045:69793824 |
| html-safe-nonce | 8f723e18b491053642868f0e4c87586925a22614393358d2fe0bfd4b408e0384 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0JDOjEyRDc3RTozQTlBOTA2OjUyMUEwNDU6Njk3OTM4MjQiLCJ2aXNpdG9yX2lkIjoiMTk0OTMzNTU2NDI0MjkyMzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6be7ea1f2fa0f2f186002310a89734bc75c333934e879a3184b4e5de69cdfe3b |
| 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 | 33d60f7e5c009874ca1d3bae4ff07a11d7994e6b4b54cf6e64121c500cc10bc5 |
| 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 | 2391a1af9753b168299d1cbf80f8bb67be4430bd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width