src/main/java/com/mxgraph/util/mxEventSource.java
public void fireEvent(mxEventObject evt, Object sender)
	{
		if (eventListeners != null && !eventListeners.isEmpty()
				&& isEventsEnabled())
		{
			if (sender == null)
			{
				sender = getEventSource();
			}

			if (sender == null)
			{
				sender = this;
			}

			for (int i = 0; i < eventListeners.size(); i += 2)
			{
				String listen = (String) eventListeners.get(i);

				if (listen == null || listen.equals(evt.getName()))
				{
					((mxIEventListener) eventListeners.get(i + 1)).invoke(
							sender, evt);
				}
			}
		}
	}
/**
	 * Dispatches the given event name, passing all arguments after the given
	 * name to the registered listeners for the event.
	 */
Dispatches the given event name, passing all arguments after the given
name to the registered listeners for the event.
Dispatches the given event name passing all arguments after the given name to the registered listeners for the event .
public void fireEvent(mxEventObject evt, Object sender)
	{
		if (eventListeners != null && !eventListeners.isEmpty()
				&& isEventsEnabled())
		{
			if (sender == null)
			{
				sender = getEventSource();
			}
			if (sender == null)
			{
				sender = this;
			}
			for (int i = 0; i < eventListeners.size(); i += 2)
			{
				String listen = (String) eventListeners.get(i);
				if (listen == null || listen.equals(evt.getName()))
				{
					((mxIEventListener) eventListeners.get(i + 1)).invoke(
							sender, evt);
				}
			}
		}
	}
public void fireEvent ( mxEventObject evt , Object sender ) { if ( eventListeners != null && ! eventListeners . isEmpty ( ) && isEventsEnabled ( ) ) { if ( sender == null ) { sender = getEventSource ( ) ; } if ( sender == null ) { sender = this ; } for ( int i = 0 ; i < eventListeners . size ( ) ; i += 2 ) { String listen = ( String ) eventListeners . get ( i ) ; if ( listen == null || listen . equals ( evt . getName ( ) ) ) { ( ( mxIEventListener ) eventListeners . get ( i + 1 ) ) . invoke ( sender , evt ) ; } } } }
Dispatches the given event name, passing all arguments after the given
 name to the registered listeners for the event.
Dispatches the given event name passing all arguments after the given name to the registered listeners for the event .