aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java
index f686e8498..6aec0e398 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java
@@ -36,6 +36,9 @@ import com.jogamp.math.FloatUtil;
* </p>
*/
public class Padding {
+ /** Zero padding constant. */
+ public static final Padding None = new Padding();
+
/** Top value */
public final float top;
/** Right value */
@@ -45,10 +48,7 @@ public class Padding {
/** Left value */
public final float left;
- /**
- * Ctor w/ zero values
- */
- public Padding() {
+ private Padding() {
this(0f);
}