From 94e58738b8f7aa4db46081ab6f96d5f16e2b681e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 14 Apr 2023 06:26:58 +0200 Subject: GraphUI Shape.validate(*): Return this for chaining --- src/graphui/classes/com/jogamp/graph/ui/Shape.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/graphui/classes/com/jogamp') diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java index 9b32c0ee0..132521f0a 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java @@ -438,7 +438,7 @@ public abstract class Shape { * @param gl current {@link GL2ES2} object * @see #validate(GLProfile) */ - public final void validate(final GL2ES2 gl) { + public final Shape validate(final GL2ES2 gl) { synchronized ( dirtySync ) { if( isShapeDirty() ) { box.reset(); @@ -446,6 +446,7 @@ public abstract class Shape { validateImpl(gl.getGLProfile(), gl); dirty = 0; } + return this; } /** @@ -456,7 +457,7 @@ public abstract class Shape { *

* @see #validate(GL2ES2) */ - public final void validate(final GLProfile glp) { + public final Shape validate(final GLProfile glp) { synchronized ( dirtySync ) { if( isShapeDirty() ) { box.reset(); @@ -464,6 +465,7 @@ public abstract class Shape { validateImpl(glp, null); dirty = 0; } + return this; } /** -- cgit v1.2.3