aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-18 02:42:32 +0100
committerSven Gothel <[email protected]>2023-12-18 02:42:32 +0100
commit47061b4528953eea0632f04082013bf38f0fe863 (patch)
tree4f24891ddacc32d2fb086e7528062af19a7bf21b
parent0fd9d02430082e930fe1058b08f4d80155a007ed (diff)
GraphUI Alignment: Use Alignment.None instead of default ctor.
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/layout/Alignment.java2
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Alignment.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Alignment.java
index 36671d32a..17b4df85c 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/layout/Alignment.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Alignment.java
@@ -85,7 +85,7 @@ public final class Alignment {
public Alignment(final int v) {
mask = v;
}
- public Alignment() {
+ private Alignment() {
mask = 0;
}
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);
}
/**