diff options
author | Sven Gothel <[email protected]> | 2023-09-04 05:16:33 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-04 06:28:05 +0200 |
commit | d5b17eddf7e7f1c33b269a3a2ed8eca959c6d639 (patch) | |
tree | 33bbe008968b174920a453f807a3277b485e5cc3 /src/graphui/classes/jogamp/graph/ui/shapes/Label0.java | |
parent | b161ec3e6527ddfca0de10961de2c984016fe88b (diff) |
GraphUI Enhance: API doc; Scene/Button Z-offset and -epsilon; Push temp AffineTransform to local method; Simplify BaseButton setCorner(0) -> setPerp(); Protected abstract ctor ..
Diffstat (limited to 'src/graphui/classes/jogamp/graph/ui/shapes/Label0.java')
-rw-r--r-- | src/graphui/classes/jogamp/graph/ui/shapes/Label0.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java b/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java index e5f7dd26c..74dcb8491 100644 --- a/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java +++ b/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java @@ -37,16 +37,16 @@ import com.jogamp.opengl.math.geom.AABBox; public class Label0 { protected Font font; - protected String text; + protected CharSequence text; protected final Vec4f rgbaColor; - public Label0(final Font font, final String text, final Vec4f rgbaColor) { + public Label0(final Font font, final CharSequence text, final Vec4f rgbaColor) { this.font = font; this.text = text; this.rgbaColor = rgbaColor; } - public final String getText() { return text; } + public final CharSequence getText() { return text; } public final Vec4f getColor() { return rgbaColor; } @@ -79,6 +79,6 @@ public class Label0 { @Override public final String toString(){ final int m = Math.min(text.length(), 8); - return "Label0 ['" + text.substring(0, m) + "']"; + return "Label0 ['" + text.subSequence(0, m) + "']"; } } |