From 4ca9efd6759856f46eb0cedde28998bc2b68d2cb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 4 Sep 2023 05:39:05 +0200 Subject: GraphUI: Button/Label: Complete String -> CharSequence type change for text, rename Button set{Label->Text}(..), adjust demo/text code --- src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java index 3192488c2..a01b892ad 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java @@ -91,7 +91,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final String text) { + public boolean setText(final CharSequence text) { if( !this.text.equals(text) ) { this.text = text; markShapeDirty(); @@ -107,7 +107,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final GL2ES2 gl, final String text) { + public boolean setText(final GL2ES2 gl, final CharSequence text) { if( setText(text) ) { validate(gl); return true; @@ -122,7 +122,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final GLProfile glp, final String text) { + public boolean setText(final GLProfile glp, final CharSequence text) { if( setText(text) ) { validate(glp); return true; -- cgit v1.2.3