Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebMemoryBar revamp #589

Closed
mgarin opened this issue Nov 28, 2019 · 1 comment
Closed

WebMemoryBar revamp #589

mgarin opened this issue Nov 28, 2019 · 1 comment

Comments

@mgarin
Copy link
Owner

mgarin commented Nov 28, 2019

WebMemoryBar needs to be updated to a proper and complete component implementation with UI, painter and styling support. It is pretty small, so I'll sneak it in the v1.2.11 update.

@mgarin mgarin added this to the v1.2.11 milestone Nov 28, 2019
@mgarin mgarin self-assigned this Nov 28, 2019
mgarin added a commit that referenced this issue Dec 4, 2019
- WebMemoryBar.java - Component have been revamped and now has it's own UI and painter implementations
- WebMemoryBar.java - Doesn't extend `WebButton` anymore and uses it's own custom `ButtonModel`
- WebMemoryBar.java - Added orientation setting to allow positioning it vertically
- WMemoryBarInputListener.java - Separate input listener for `WebMemoryBar` button-like actions
- memorybar.xml, StyleId - Adjusted styles to use `memorybar` base component type
- light-icon-set.xml, dark-icon-set.xml, Icons.java - Added `memory` icon for `WebMemoryBar` default tooltip
- WebLookAndFeel.java - Added separate font for `memorybar` component

ProgressBar
- ProgressBarPainter.java - Removed hardcoded progress bounds
- ProgressShape.java - New custom shape for `JProgressBar` progress based on `AbstractProgressShape`
- progressbar.xml - Now uses `ProgressShape` instead of `WebShape`

Styling
- AbstractProgressShape.java - New abstract `IShape` implementation for simple custom progress shapes

Canvas
- canvas.xml - Adjusted dark gripper colors

MultiSplitPane
- MultiSplitPanePainter.java - Added orientation state support

Utilities
- ComponentUpdater.java - Removed as redundant, use `TaskManager` or `WebTimer` instead when appropriate
- MathUtils.java - Added `roundToInt ( double )` method for convenience

DemoApplication
- WebMemoryBarExample.java - Added example for `WebMemoryBar` component
- JDesktopPaneExample.java - Renamed from `JInternalFrameExample` and moved into `ContainersGroup` instead of a custom one
- DemoApplication.java - Moved resize gripper on top of the memory bar in status bar via overlay
@mgarin
Copy link
Owner Author

mgarin commented Dec 4, 2019

I've pushed revamp for this component, it will be available in v1.2.11 release.

@mgarin mgarin closed this as completed Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant