diff options
author | Sven Gothel <sgothel@jausoft.com> | 2023-09-05 02:54:42 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2023-09-05 02:54:42 +0200 |
commit | ddd6cac8cc658ce542cb98e85f7d262f9917d37a (patch) | |
tree | 645516bebc945b5a853fd1ce54346d8abeb0235b /src/graphui/classes/com/jogamp/graph/ui/GraphShape.java | |
parent | f39a084c6a34a083698ca56e9122642e839234c2 (diff) |
GraphUI Layout: Fix BoxLayout scale, margin and padding; Add same padding behavior to BoxLayout and GridLayout.
For all:
- Padding is applied to each {@Shape} via {@link Shape#setPaddding(Padding)} if passed in constructor
BoxLayout:
- Optionally centered {@link Alignment.Bit#CenterHoriz horizontally}, {@link Alignment.Bit#CenterVert vertically} or {@link Alignment#Center both}.
- Optionally scaled to cell-size if given and {@link Alignment#Fill}
- Margin is ignored on dimension with center {@link Alignment}
- Not implemented {@link Alignment}: Top, Right, Bottom, Left
GridLayout:
- Optionally centered {@link Alignment.Bit#CenterHoriz horizontally}, {@link Alignment.Bit#CenterVert vertically} or {@link Alignment#Center both}.
- Optionally scaled to cell-size if given and {@link Alignment#Fill}
- Without cell-size behaves like a grid bag using individual shape sizes including padding
- Can be filled in {@link Order#COLUMN} or {@link Order#ROW} major-order.
- Not implemented {@link Alignment}: Top, Right, Bottom, Left
Changes to Group.Layout interface:
- Added preValidate(Shape) allowing to prepare the shape before validation, used to inject Padding
Changes to Margin:
- Removed the complex CENTER property and using Alignment in BoxLayout as well
Changes to BoxLayout:
- Using Alignment
+++
Tested via UILayoutBox01 and UILayoutGrid01,
try the tooltip by clicking on the group's description label.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/GraphShape.java')
0 files changed, 0 insertions, 0 deletions