|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyEventHelper
The basic event handling interface for Cytoscape. All Cytoscape events should be fired using these methods. All listeners should be registered as CyListener services.
Field Summary | |
---|---|
static int |
DEFAULT_PAYLOAD_INTERVAL_MILLIS
The default number of milliseconds to wait before the next time that we will check for payload events to fire. |
Method Summary | ||
---|---|---|
|
addEventPayload(S source,
P payload,
Class<E> eventType)
Adds a payload object to be accumulated in a CyPayloadEvent. |
|
|
fireEvent(E event)
Calls each listener found in the Service Registry identified by the listenerClass interface by the supplied CyEvent. |
|
void |
flushPayloadEvents()
Forces accumulated payload events to be fired. |
|
void |
silenceEventSource(Object eventSource)
This method will prevent any events fired from the specified source object from being propagated to listeners. |
|
void |
unsilenceEventSource(Object eventSource)
This method will allow events fired from the specified source object to be propagated to listeners. |
Field Detail |
---|
static final int DEFAULT_PAYLOAD_INTERVAL_MILLIS
Method Detail |
---|
<E extends CyEvent<?>> void fireEvent(E event)
E
- The type of event fired.event
- The event to be fired.<S,P,E extends CyPayloadEvent<S,P>> void addEventPayload(S source, P payload, Class<E> eventType)
S
- the generic type of the object firing the event.P
- the generic type of the data payload to be added to the event.E
- the generic type of the event that the payload will be added to.source
- The object firing the event.payload
- The data payload to be added to the event that will
eventually be fired.eventType
- The type of the event that the payload will be added to.void flushPayloadEvents()
void silenceEventSource(Object eventSource)
eventSource
- The object that should have its events blocked
from being sent.void unsilenceEventSource(Object eventSource)
eventSource
- The object that should have its events sent
to listeners.
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |