From ad8471401f7ca004df823f7f7436c2cbc4676195 Mon Sep 17 00:00:00 2001 From: Sven Gothel <sgothel@jausoft.com> Date: Mon, 18 Dec 2023 02:54:51 +0100 Subject: GraphUI Padding, Margin, Gap: Use zero value constant None instead of default ctor --- src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java b/src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java index 8175a8daf..b89529420 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/GridLayout.java @@ -80,7 +80,7 @@ public class GridLayout implements Group.Layout { * @param alignment TODO */ public GridLayout(final int column_limit, final float cellWidth, final float cellHeight, final Alignment alignment) { - this(alignment, Math.max(1, column_limit), -1, cellWidth, cellHeight, new Gap(), null); + this(alignment, Math.max(1, column_limit), -1, cellWidth, cellHeight, Gap.None, null); } /** @@ -116,7 +116,7 @@ public class GridLayout implements Group.Layout { * @param row_limit [1..inf) */ public GridLayout(final float cellWidth, final float cellHeight, final Alignment alignment, final int row_limit) { - this(alignment, -1, Math.max(1, row_limit), cellWidth, cellHeight, new Gap(), null); + this(alignment, -1, Math.max(1, row_limit), cellWidth, cellHeight, Gap.None, null); } /** -- cgit v1.2.3