y25.view.realizer
Class LabelPainter
java.lang.Object
y25.view.realizer.LabelPainter
- public class LabelPainter
- extends Object
Paints YLabel
s into an OpenGL context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelPainter
public LabelPainter()
paintGL
public static void paintGL(GLAutoDrawable drawable,
Camera camera,
YLabel label,
Point3D pos)
- Renders the passed label into the given drawable.
- Parameters:
drawable
- the drawable that the label will be rendered into.camera
- used to determine the orientation of the label such that is
faces the viewer.label
- the label that will be rendered.pos
- the position of the labbel. The text of the label will be
centered at this position.