org.jzy3d.plot3d.text
Class TextBitmapDrawable

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.text.TextBitmapDrawable
All Implemented Interfaces:
IGLRenderer, ISortableDraw

public class TextBitmapDrawable
extends AbstractDrawable

EXPERIMENTAL A TextBitmapDrawable is a Text renderer that may be inserted into a scene graph. WARNING: THE BBOX IS ONLY AVAILABLE AFTER DRAWING!!!

Author:
Martin Pernollet

Constructor Summary
TextBitmapDrawable()
           
TextBitmapDrawable(java.lang.String txt, Coord3d position, Color color)
           
 
Method Summary
 void dispose()
          Performs all required operation to cleanup the Drawable.
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL routines for rendering the object.
 BoundingBox3d getBounds()
          Return the BoundingBox of this object.
 Coord3d getPosition()
           
 java.lang.String getText()
           
 void setColor(Color color)
           
 void setData(java.lang.String txt)
           
 void setData(java.lang.String txt, Coord3d position, Color color)
           
 void setPosition(Coord3d position)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, getBarycentre, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextBitmapDrawable

public TextBitmapDrawable()

TextBitmapDrawable

public TextBitmapDrawable(java.lang.String txt,
                          Coord3d position,
                          Color color)
Method Detail

dispose

public void dispose()
Description copied from class: AbstractDrawable
Performs all required operation to cleanup the Drawable.

Overrides:
dispose in class AbstractDrawable

draw

public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Specified by:
draw in class AbstractDrawable
Parameters:
gl - GL context
glu - GLU context
cam - a reference to a shooting Camera.

getBounds

public BoundingBox3d getBounds()
Description copied from class: AbstractDrawable
Return the BoundingBox of this object.

Overrides:
getBounds in class AbstractDrawable
Returns:
a bounding box

setData

public void setData(java.lang.String txt,
                    Coord3d position,
                    Color color)

getText

public java.lang.String getText()

setData

public void setData(java.lang.String txt)

setPosition

public void setPosition(Coord3d position)

getPosition

public Coord3d getPosition()

setColor

public void setColor(Color color)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractDrawable