com.mxgraph.util.mxEventSource Maven / Gradle / Ivy
/**
* $Id: mxEventSource.java,v 1.12 2011-08-26 06:45:18 gaudenz Exp $
* Copyright (c) 2007, Gaudenz Alder
*/
package com.mxgraph.util;
import java.util.ArrayList;
import java.util.List;
/**
* Base class for objects that dispatch named events.
*/
public class mxEventSource
{
/**
* Defines the requirements for an object that listens to an event source.
*/
public interface mxIEventListener
{
/**
* Called when the graph model has changed.
*
* @param sender Reference to the source of the event.
* @param evt Event object to be dispatched.
*/
void invoke(Object sender, mxEventObject evt);
}
/**
* Holds the event names and associated listeners in an array. The array
* contains the event name followed by the respective listener for each
* registered listener.
*/
protected transient List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy