org.jzy3d.plot3d.text
Class TextBitmapDrawable
java.lang.Object
org.jzy3d.plot3d.primitives.AbstractDrawable
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
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 |
TextBitmapDrawable
public TextBitmapDrawable()
TextBitmapDrawable
public TextBitmapDrawable(java.lang.String txt,
Coord3d position,
Color color)
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 contextglu
- GLU contextcam
- 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