gestalt.demo.processing
Class UsingPFonts.PFontRenderer

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by gestalt.demo.processing.UsingPFonts.PFontRenderer
All Implemented Interfaces:
Drawable
Enclosing class:
UsingPFonts

public class UsingPFonts.PFontRenderer
extends AbstractDrawable


Field Summary
 int align
           
 float leading
           
 Vector3f position
           
 float size
           
 java.lang.String text
           
 
Constructor Summary
UsingPFonts.PFontRenderer(processing.core.PFont thePFont, GestaltPlugIn thePlugin)
           
 
Method Summary
 void draw(GLContext theContext)
          this method is used to draw the drawable, when the context is ready.
 void text(java.lang.String str, float x, float y)
          Draw a chunk of text.
 float textWidth(char c)
           
 
Methods inherited from class gestalt.shape.AbstractDrawable
add, getSortData, getSortValue, isActive, isSortable, setSortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public java.lang.String text

position

public Vector3f position

size

public float size

leading

public float leading

align

public int align
Constructor Detail

UsingPFonts.PFontRenderer

public UsingPFonts.PFontRenderer(processing.core.PFont thePFont,
                                 GestaltPlugIn thePlugin)
Method Detail

draw

public void draw(GLContext theContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Parameters:
theContext - GLContext

text

public void text(java.lang.String str,
                 float x,
                 float y)
Draw a chunk of text. Newlines that are \n (Unix newline or linefeed char, ascii 10) are honored, but \r (carriage return, Windows and Mac OS) are ignored.


textWidth

public float textWidth(char c)


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009