gestalt.demo.processing
Class UsingPFonts.PFontRenderer
java.lang.Object
gestalt.shape.AbstractDrawable
gestalt.demo.processing.UsingPFonts.PFontRenderer
- All Implemented Interfaces:
- Drawable
- Enclosing class:
- UsingPFonts
public class UsingPFonts.PFontRenderer
- extends AbstractDrawable
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
public java.lang.String text
position
public Vector3f position
size
public float size
leading
public float leading
align
public int align
UsingPFonts.PFontRenderer
public UsingPFonts.PFontRenderer(processing.core.PFont thePFont,
GestaltPlugIn thePlugin)
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