com.transmote.nest
Class NestTextSprite
java.lang.Object
java.util.Observable
com.transmote.nest.events.EventDispatcher
com.transmote.nest.NestSprite
com.transmote.nest.NestTextSprite
- All Implemented Interfaces:
- Observer
public class NestTextSprite
- extends NestSprite
A simple NestSprite wrapper for Processing's text() method.
Set color, font, and align once, and manipulate as with other NestSprites.
Also supports alpha.
| Fields inherited from class com.transmote.nest.NestSprite |
blendMode, boundsLeft, boundsTop, handleCaptureEvents, height, inFront, inputChildren, inputEnabled, NO_BLEND_MODE, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, visible, width, x, y, z |
|
Method Summary |
void |
draw(PApplet p)
All drawing to screen should go in this method of subclasses. |
| Methods inherited from class com.transmote.nest.NestSprite |
addChild, addChild, bounds, dispatchEvent, dispose, dispose, getChildAt, getChildIndex, globalToLocal, hitTest, hitTest, isDisposed, localToGlobal, mousePt, mouseX, mouseY, numChildren, pApplet, parent, removeChild, removeChild, renderer, screenPt, screenX, screenY, setBounds, setBounds, setChildIndex, setDraw, setDraw, setRenderer, setRenderer, setUpdate, setUpdate, swapChildren, swapChildren |
text
public String text
color
public int color
font
public PFont font
align
public int align
alpha
public float alpha
NestTextSprite
public NestTextSprite(String text)
NestTextSprite
public NestTextSprite(String text,
int color)
NestTextSprite
public NestTextSprite(String text,
int color,
PFont font)
NestTextSprite
public NestTextSprite(String text,
int color,
PFont font,
int align)
draw
public void draw(PApplet p)
- Description copied from class:
NestSprite
- All drawing to screen should go in this method of subclasses.
draw() is called after applying all translation and rotation.
- Parameters:
p - The PApplet application instance.
Processing library Nest by Eric Socolofsky. (C) Eric Socolofsky 2011-2013