com.transmote.nest
Class NestTextSprite

java.lang.Object
  extended by java.util.Observable
      extended by com.transmote.nest.events.EventDispatcher
          extended by com.transmote.nest.NestSprite
              extended by 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.


Field Summary
 int align
           
 float alpha
           
 int color
           
 PFont font
           
 String text
           
 
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
 
Constructor Summary
NestTextSprite(String text)
           
NestTextSprite(String text, int color)
           
NestTextSprite(String text, int color, PFont font)
           
NestTextSprite(String text, int color, PFont font, int align)
           
 
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
 
Methods inherited from class com.transmote.nest.events.EventDispatcher
addObserver, deleteObserver, dispatchEvent, owner, update
 
Methods inherited from class java.util.Observable
countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public String text

color

public int color

font

public PFont font

align

public int align

alpha

public float alpha
Constructor Detail

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)
Method Detail

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