diff options
author | Sven Gothel <[email protected]> | 2023-12-18 02:54:51 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-12-18 02:54:51 +0100 |
commit | ad8471401f7ca004df823f7f7436c2cbc4676195 (patch) | |
tree | dac6fad824e35e59599632e014b8677e58e11fd0 /src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java | |
parent | 47061b4528953eea0632f04082013bf38f0fe863 (diff) |
GraphUI Padding, Margin, Gap: Use zero value constant None instead of default ctor
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java index b29245ef0..9d832092d 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Gap.java @@ -36,15 +36,15 @@ import com.jogamp.math.FloatUtil; * </p> */ public class Gap { + /** Zero gap constant. */ + public static final Gap None = new Gap(); + /** Row gap value, vertical spacing. */ public final float row; /** Column gap value, horizontal spacing. */ public final float column; - /** - * Ctor w/ zero values - */ - public Gap() { + private Gap() { row = 0f; column = 0f; } |