com.transmote.nest
Class NestImageSprite

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.NestImageSprite
All Implemented Interfaces:
Observer

public class NestImageSprite
extends NestSprite

A simple NestSprite wrapper for Processing's image() method. Set path and call loadImage, and manipulate as with other NestSprites. Also supports alpha.


Field Summary
 float alpha
           
 String path
           
 int tintB
           
 int tintG
           
 int tintR
           
 
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
NestImageSprite(String path)
           
NestImageSprite(String path, boolean autoload)
           
 
Method Summary
 void draw(PApplet p)
          All drawing to screen should go in this method of subclasses.
 void loadImage()
           
 void loadImage(PApplet p)
           
 
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

path

public String path

tintR

public int tintR

tintG

public int tintG

tintB

public int tintB

alpha

public float alpha
Constructor Detail

NestImageSprite

public NestImageSprite(String path)

NestImageSprite

public NestImageSprite(String path,
                       boolean autoload)
Method Detail

loadImage

public void loadImage()

loadImage

public void loadImage(PApplet p)

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