|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.transmote.nest.events.Event
public class Event
Event instances represent generic events dispatched by the Nest framework; Event can be subclassed for custom event development.
EventDispatcher| Nested Class Summary | |
|---|---|
static class |
Event.PHASE
Enumerated display list event phase. |
| Field Summary | |
|---|---|
static int |
ADDED
Event type dispatched when a NestSprite is added as a child to another NestSprite, via NestSprite.addChild(com.transmote.nest.NestSprite). |
static int |
ADDED_TO_STAGE
Event type dispatched by a NestSprite and each of its descendants when it is added to the display list and becomes visible on-screen. |
static int |
DISPATCHER_DISPOSE
Event type dispatched when EventDispatcher.dispose() is called. |
static int |
ERROR
Event type dispatched when a caught error is handled within the Nest framework. |
static int |
INIT
Event type dispatched when a NestSprite is initialized, NOTE: not currently used. |
static int |
REMOVED
Event type dispatched when a NestSprite is removed from its parent, via NestSprite.removeChild(com.transmote.nest.NestSprite). |
| Constructor Summary | |
|---|---|
Event(int type)
A generic Nest event instance. |
|
Event(int type,
boolean bubbles)
A generic Nest event instance. |
|
| Method Summary | |
|---|---|
boolean |
bubbles()
Specifies whether or not the event will bubble up the display list. |
EventDispatcher |
currentTarget()
The EventDispatcher currently processing this Event Instance. |
boolean |
isPropagationStopped()
Returns true if stopPropagation() has been called. |
Event.PHASE |
phase()
Enumerated display list event phase. |
processing.event.Event |
processingEvent()
The Processing Event instance generated by Processing, if applicable (if this Event instance was generated in response to a mouse or keyboard action). |
void |
stopPropagation()
Stop an Event instance traveling through the display list. |
Object |
target()
If dispatched by an EventDispatcher, the EventDispatcher instance
that dispatched this Event instance. |
String |
toString()
|
int |
type()
The event type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DISPATCHER_DISPOSE
EventDispatcher.dispose() is called.
public static final int ADDED
NestSprite.addChild(com.transmote.nest.NestSprite).
public static final int ADDED_TO_STAGE
public static final int REMOVED
NestSprite.removeChild(com.transmote.nest.NestSprite).
public static final int ERROR
public static final int INIT
| Constructor Detail |
|---|
public Event(int type)
type - The event type.
public Event(int type,
boolean bubbles)
type - The event type.bubbles - Whether or not the event will bubble up the display list.| Method Detail |
|---|
public int type()
public boolean bubbles()
public Event.PHASE phase()
Event.PHASE.NOT_ON_DISPLAY_LIST.
public Object target()
EventDispatcher, the EventDispatcher instance
that dispatched this Event instance.
Otherwise, the Object that dispatched this Event instance.
public EventDispatcher currentTarget()
EventDispatcher currently processing this Event Instance.
public processing.event.Event processingEvent()
public void stopPropagation()
public boolean isPropagationStopped()
stopPropagation() has been called.
else, returns false.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||