subscript.vis
Class VisText

java.lang.Object
  extended by subscript.vis.VisObject
      extended by subscript.vis.VisText

public class VisText
extends VisObject

Displays text either in world space or as an overlay.


Constructor Summary
VisText(java.lang.String s, VisFontStyle fontStyle)
           
 
Method Summary
 Box3D getExtents(Matrix T)
          Get the bounding box in global coordinates, i.e., using the object's transform T and the passed-in matrix S.
static VisText makeCaption(java.lang.String s, java.awt.Color color, double lineHeight, VisFontStyle.ANCHOR anchor)
           
 void render(VisRenderer r, VisWorld world, VisView v)
          Called by VisCanvas when it is time to render the object.
 
Methods inherited from class subscript.vis.VisObject
getPosition, rotateX, rotateY, rotateZ, setPosition, setPosition, setPosition, setPositionT, setPositionXYT, setPositionXYT, setPositionXYZ, transform, transform, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisText

public VisText(java.lang.String s,
               VisFontStyle fontStyle)
Method Detail

render

public void render(VisRenderer r,
                   VisWorld world,
                   VisView v)
Description copied from class: VisObject
Called by VisCanvas when it is time to render the object.

Specified by:
render in class VisObject

getExtents

public Box3D getExtents(Matrix T)
Description copied from class: VisObject
Get the bounding box in global coordinates, i.e., using the object's transform T and the passed-in matrix S. I.e., pass S*T to methods of Box3D.

Specified by:
getExtents in class VisObject

makeCaption

public static VisText makeCaption(java.lang.String s,
                                  java.awt.Color color,
                                  double lineHeight,
                                  VisFontStyle.ANCHOR anchor)