⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mxeventobject.java

📁 经典的java图像处理程序源码
💻 JAVA
字号:
/** * $Id: mxEventObject.java,v 1.1 2009/03/20 08:56:45 gaudenz Exp $ * Copyright (c) 2007, Gaudenz Alder */package com.mxgraph.util;/** * Base class for objects that dispatch named events. */public class mxEventObject{	/**	 * 	 */	protected static final Object[] EMPTY_ARRAY = new Object[] {};	/**	 * Holds the consumed state of the event. Default is false.	 */	protected boolean consumed = false;	/**	 * Holds the arguments associated with this event object.	 */	protected Object[] args;	/**	 * Constructs a new event source using this as the source object.	 */	public mxEventObject()	{		this(EMPTY_ARRAY);	}	/**	 * Constructs a new event source for the given source object.	 */	public mxEventObject(Object[] args)	{		this.args = args;	}	/**	 * Returns true if the event has been consumed.	 */	public boolean isConsumed()	{		return consumed;	}	/**	 * Consumes the event.	 */	public void consume()	{		consumed = true;	}	/**	 * Dispatches the given event name, passing all arguments after the given	 * name to the registered listeners for the event.	 */	public Object[] getArgs()	{		return args;	}	/**	 * 	 */	public int getArgCount()	{		return args.length;	}	/**	 * 	 */	public Object getArgAt(int index)	{		return args[index];	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -