From 47061b4528953eea0632f04082013bf38f0fe863 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Dec 2023 02:42:32 +0100 Subject: GraphUI Alignment: Use Alignment.None instead of default ctor. --- .../classes/com/jogamp/graph/ui/layout/BoxLayout.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java index a507e5de1..f100554d5 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java @@ -62,7 +62,7 @@ public class BoxLayout implements Group.Layout { /** */ public BoxLayout() { - this(0f, 0f, new Alignment(), new Margin(), null); + this(0f, 0f, Alignment.None, new Margin(), null); } /** @@ -70,11 +70,11 @@ public class BoxLayout implements Group.Layout { * @param padding {@link Padding} applied to each {@Shape} via {@link Shape#setPaddding(Padding)} and is scaled if {@link Alignment.Bit#Fill} */ public BoxLayout(final Padding padding) { - this(0f, 0f, new Alignment(), new Margin(), padding); + this(0f, 0f, Alignment.None, new Margin(), padding); } public BoxLayout(final float cellWidth, final float cellHeight) { - this(cellWidth, cellHeight, new Alignment(), new Margin(), null); + this(cellWidth, cellHeight, Alignment.None, new Margin(), null); } /** @@ -94,7 +94,7 @@ public class BoxLayout implements Group.Layout { * @param margin {@link Margin} is applied unscaled and ignored with only center {@link Alignment} w/o {@link Alignment.Bit#Fill} scale */ public BoxLayout(final float cellWidth, final float cellHeight, final Margin margin) { - this(cellWidth, cellHeight, new Alignment(), margin, null); + this(cellWidth, cellHeight, Alignment.None, margin, null); } /** @@ -104,7 +104,7 @@ public class BoxLayout implements Group.Layout { * @param padding {@link Padding} applied to each {@Shape} via {@link Shape#setPaddding(Padding)} and is scaled if {@link Alignment.Bit#Fill} */ public BoxLayout(final float cellWidth, final float cellHeight, final Padding padding) { - this(cellWidth, cellHeight, new Alignment(), new Margin(), padding); + this(cellWidth, cellHeight, Alignment.None, new Margin(), padding); } /** @@ -115,7 +115,7 @@ public class BoxLayout implements Group.Layout { * @param padding {@link Padding} applied to each {@Shape} via {@link Shape#setPaddding(Padding)} and is scaled if {@link Alignment.Bit#Fill} */ public BoxLayout(final float cellWidth, final float cellHeight, final Margin margin, final Padding padding) { - this(cellWidth, cellHeight, new Alignment(), margin, padding); + this(cellWidth, cellHeight, Alignment.None, margin, padding); } /** -- cgit v1.2.3