org.jzy3d.plot3d.text.renderers
Class TextBitmapRenderer

java.lang.Object
  extended by org.jzy3d.plot3d.text.AbstractTextRenderer
      extended by org.jzy3d.plot3d.text.renderers.TextBitmapRenderer
All Implemented Interfaces:
ITextRenderer

public class TextBitmapRenderer
extends AbstractTextRenderer
implements ITextRenderer

could enhance using http://www.angelcode.com/products/bmfont/

Author:
Martin

Field Summary
protected  int font
           
protected  int fontHeight
           
protected static com.jogamp.opengl.util.gl2.GLUT glut
           
 
Fields inherited from class org.jzy3d.plot3d.text.AbstractTextRenderer
defSceneOffset, defScreenOffset
 
Constructor Summary
TextBitmapRenderer()
          The TextBitmap class provides support for drawing ASCII characters Any non ascii caracter will be replaced by a square.
 
Method Summary
 void drawSimpleText(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam, String s, Coord3d position, Color color)
           
 BoundingBox3d drawText(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam, String s, Coord3d position, Halign halign, Valign valign, Color color, Coord2d screenOffset, Coord3d sceneOffset)
          Draw a string at the specified position and compute the 3d volume occupied by the string according to the current Camera configuration.
 
Methods inherited from class org.jzy3d.plot3d.text.AbstractTextRenderer
drawText, drawText, drawText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jzy3d.plot3d.text.ITextRenderer
drawText, drawText, drawText
 

Field Detail

glut

protected static com.jogamp.opengl.util.gl2.GLUT glut

fontHeight

protected int fontHeight

font

protected int font
Constructor Detail

TextBitmapRenderer

public TextBitmapRenderer()
The TextBitmap class provides support for drawing ASCII characters Any non ascii caracter will be replaced by a square.

Method Detail

drawSimpleText

public void drawSimpleText(javax.media.opengl.GL2 gl,
                           javax.media.opengl.glu.GLU glu,
                           Camera cam,
                           String s,
                           Coord3d position,
                           Color color)
Specified by:
drawSimpleText in interface ITextRenderer

drawText

public BoundingBox3d drawText(javax.media.opengl.GL2 gl,
                              javax.media.opengl.glu.GLU glu,
                              Camera cam,
                              String s,
                              Coord3d position,
                              Halign halign,
                              Valign valign,
                              Color color,
                              Coord2d screenOffset,
                              Coord3d sceneOffset)
Draw a string at the specified position and compute the 3d volume occupied by the string according to the current Camera configuration.

Specified by:
drawText in interface ITextRenderer