|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nootropic.processing.layers.AppletLayers
public class AppletLayers
This class is a container for the Layer objects of a Processing sketch. The AppletLayers object manages the rendering of Layers in the correct order, and allows mouse and keyboard events to be propagated to all layers. All created Layer objects must be added to an AppletLayers object in order to be drawn in the sketch.
Field Summary | |
---|---|
int[] |
pixels
|
Constructor Summary | |
---|---|
AppletLayers(processing.core.PApplet parent)
Create an AppletLayers object for the specified PApplet. |
Method Summary | |
---|---|
void |
addLayer(Layer layer)
Add a layer to this AppletLayers object. |
void |
draw()
Draw each Layer managed by this AppletLayers object. |
Layer |
getLayer(int i)
Get a layer at a specified index. |
java.util.ListIterator |
getListIterator()
Get a list iterator for the list of layers. |
void |
keyEvent(java.awt.event.KeyEvent event)
Process key events for the set of Layer objects managed by this AppletLayers object. |
void |
loadPixels()
Load the pixels from all layers to the variable pixels. |
void |
mouseEvent(java.awt.event.MouseEvent event)
Process mouse events for the set of Layer objects managed by this AppletLayers object. |
int |
numLayers()
Get the number of layers in this AppletLayers object. |
void |
paint(processing.core.PApplet pApplet)
Paint the set of managed Layers to the screen. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int[] pixels
Constructor Detail |
---|
public AppletLayers(processing.core.PApplet parent)
parent
- Method Detail |
---|
public void addLayer(Layer layer)
layer
- the layer to addpublic int numLayers()
public Layer getLayer(int i)
i
- the index of the layer to get
public java.util.ListIterator getListIterator()
public void draw()
public void paint(processing.core.PApplet pApplet)
pApplet
- the parent PAppletpublic void loadPixels()
public void mouseEvent(java.awt.event.MouseEvent event)
event
- the MouseEventpublic void keyEvent(java.awt.event.KeyEvent event)
event
- the KeyEvent
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |