Class mxEventObject

java.lang.Object
com.mxgraph.util.mxEventObject

public class mxEventObject extends Object
Base class for objects that dispatch named events.
  • Field Details

    • name

      protected String name
      Holds the name of the event.
    • properties

      protected Map<String,Object> properties
      Holds the properties of the event.
    • consumed

      protected boolean consumed
      Holds the consumed state of the event. Default is false.
  • Constructor Details

    • mxEventObject

      public mxEventObject(String name)
      Constructs a new event for the given name.
    • mxEventObject

      public mxEventObject(String name, Object... args)
      Constructs a new event for the given name and properties. The optional properties are specified using a sequence of keys and values, eg. new mxEventObject("eventName", key1, val1, .., keyN, valN))
  • Method Details

    • getName

      public String getName()
      Returns the name of the event.
    • getProperties

      public Map<String,Object> getProperties()
    • getProperty

      public Object getProperty(String key)
    • isConsumed

      public boolean isConsumed()
      Returns true if the event has been consumed.
    • consume

      public void consume()
      Consumes the event.