org.jzy3d.plot3d.text.renderers
Class TextBitmapRenderer
java.lang.Object
org.jzy3d.plot3d.text.AbstractTextRenderer
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
|
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.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam,
String s,
Coord3d position,
Color color)
|
BoundingBox3d |
drawText(javax.media.opengl.GL 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
glut
protected static com.jogamp.opengl.util.gl2.GLUT glut
fontHeight
protected int fontHeight
font
protected int font
TextBitmapRenderer
public TextBitmapRenderer()
- The TextBitmap class provides support for drawing ASCII characters Any
non ascii caracter will be replaced by a square.
drawSimpleText
public void drawSimpleText(javax.media.opengl.GL 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.GL 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
Copyright © 2013. All rights reserved.