org.cytoscape.event
Class AbstractCyEvent<T>
java.lang.Object
org.cytoscape.event.AbstractCyEvent<T>
- Type Parameters:
T
- the generic type of the AbstractCyEvent.
- All Implemented Interfaces:
- CyEvent<T>
- Direct Known Subclasses:
- AboutToRemoveEdgesEvent, AboutToRemoveEdgeViewsEvent, AboutToRemoveNodesEvent, AboutToRemoveNodeViewsEvent, AbstractCyPayloadEvent, ColumnCreatedEvent, ColumnDeletedEvent, ColumnNameChangedEvent, CyShutdownEvent, CyStartEvent, CytoPanelComponentSelectedEvent, CytoPanelStateChangedEvent, DataImportFinishedEvent, FitContentEvent, FitSelectedEvent, GroupAboutToBeDestroyedEvent, GroupAboutToBeRemovedEvent, GroupAboutToCollapseEvent, GroupAddedEvent, GroupAddedToNetworkEvent, GroupCollapsedEvent, GroupEdgesAddedEvent, GroupEdgesRemovedEvent, GroupNodesAddedEvent, GroupNodesRemovedEvent, LexiconStateChangedEvent, NetworkAboutToBeDestroyedEvent, NetworkAddedEvent, NetworkDestroyedEvent, NetworkViewAboutToBeDestroyedEvent, NetworkViewAddedEvent, NetworkViewDestroyedEvent, PreferencesUpdatedEvent, PropertyUpdatedEvent, RemovedEdgesEvent, RemovedNodesEvent, RenderingEngineAboutToBeRemovedEvent, RenderingEngineAddedEvent, SearchFinishedEvent, SelectedVisualStyleSwitchedEvent, SessionAboutToBeSavedEvent, SessionLoadedEvent, SessionSavedEvent, SetCurrentNetworkEvent, SetCurrentNetworkViewEvent, SetCurrentRenderingEngineEvent, SetNetworkPointerEvent, SetSelectedNetworksEvent, SetSelectedNetworkViewsEvent, TableAboutToBeDeletedEvent, TableAddedEvent, TableDeletedEvent, UnsetNetworkPointerEvent, UpdateNetworkPresentationEvent, VisualStyleAboutToBeRemovedEvent, VisualStyleAddedEvent, VisualStyleSetEvent
public abstract class AbstractCyEvent<T>
- extends Object
- implements CyEvent<T>
A base implementation of CyEvent
that can be used by events.
Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCyEvent
public AbstractCyEvent(T source,
Class<?> listenerClass)
- Constructor.
- Parameters:
source
- The source object that fires the event. May NOT be null.listenerClass
- The Class that defines the listener interface. May NOT be null.
getSource
public T getSource()
- The object that fired the event.
- Specified by:
getSource
in interface CyEvent<T>
- Returns:
- The object that fired the event.
getListenerClass
public Class<?> getListenerClass()
- The Class of the listener that is expected to handle this event.
- Specified by:
getListenerClass
in interface CyEvent<T>
- Returns:
- The Class of the listener that is expected to handle this event.
Copyright 2011 Cytoscape Consortium. All rights reserved.