y25.view.realizer
Class LabelPainter

java.lang.Object
  extended byy25.view.realizer.LabelPainter

public class LabelPainter
extends Object

Paints YLabels into an OpenGL context.


Constructor Summary
LabelPainter()
           
 
Method Summary
static void paintGL(GLAutoDrawable drawable, Camera camera, YLabel label, Point3D pos)
          Renders the passed label into the given drawable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelPainter

public LabelPainter()
Method Detail

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.