JGraph X 1.0.2.8


com.mxgraph.util
Class mxEventObject

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

public class mxEventObject
extends Object

Base class for objects that dispatch named events.


Field Summary
protected  Object[] args
          Holds the arguments associated with this event object.
protected  boolean consumed
          Holds the consumed state of the event.
protected static Object[] EMPTY_ARRAY
           
 
Constructor Summary
mxEventObject()
          Constructs a new event source using this as the source object.
mxEventObject(Object[] args)
          Constructs a new event source for the given source object.
 
Method Summary
 void consume()
          Consumes the event.
 Object getArgAt(int index)
           
 int getArgCount()
           
 Object[] getArgs()
          Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.
 boolean isConsumed()
          Returns true if the event has been consumed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

protected static final Object[] EMPTY_ARRAY

consumed

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


args

protected Object[] args
Holds the arguments associated with this event object.

Constructor Detail

mxEventObject

public mxEventObject()
Constructs a new event source using this as the source object.


mxEventObject

public mxEventObject(Object[] args)
Constructs a new event source for the given source object.

Method Detail

isConsumed

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


consume

public void consume()
Consumes the event.


getArgs

public Object[] getArgs()
Dispatches the given event name, passing all arguments after the given name to the registered listeners for the event.


getArgCount

public int getArgCount()

getArgAt

public Object getArgAt(int index)

JGraph X 1.0.2.8


Copyright (c) 2008 Gaudenz Alder. All rights reserved.