From f5aaaf5cd65dedba658392cc30edb24b0dc3c026 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 6 May 2011 15:57:16 +0200 Subject: Graph / Text: Use CharSequence as char/string interface to text rendering Implements more of John Pritchard proposal https://github.com/syntelos/jogl/commit/eadee0758babcddaa5eeaffbe046e1b09f9f550e --- src/jogl/classes/jogamp/graph/curve/text/GlyphString.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/jogl/classes/jogamp/graph/curve') diff --git a/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java b/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java index a904c2b48..852d84f5a 100644 --- a/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java +++ b/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java @@ -45,12 +45,11 @@ import jogamp.graph.geom.plane.PathIterator; import com.jogamp.graph.curve.Region; import com.jogamp.graph.curve.RegionFactory; import com.jogamp.graph.curve.opengl.RenderState; -import com.jogamp.opengl.util.glsl.ShaderState; public class GlyphString { private ArrayList glyphs = new ArrayList(); - private String str = ""; - private String fontname = ""; + private CharSequence str; + private String fontname; private Region region; private SVertex origin = new SVertex(); @@ -60,7 +59,7 @@ public class GlyphString { * associated with * @param str the string object */ - public GlyphString(String fontname, String str){ + public GlyphString(String fontname, CharSequence str){ this.fontname = fontname; this.str = str; } @@ -68,7 +67,8 @@ public class GlyphString { public void addGlyphShape(GlyphShape glyph){ glyphs.add(glyph); } - public String getString(){ + + public CharSequence getString(){ return str; } -- cgit v1.2.3