[Schmitzm-commits] r629 - branches/2.0-RC2/src/schmitzm/swing/event

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jan 28 14:54:47 CET 2010


Author: alfonx
Date: 2010-01-28 14:54:44 +0100 (Thu, 28 Jan 2010)
New Revision: 629

Added:
   branches/2.0-RC2/src/schmitzm/swing/event/MouseInputType.java
Log:
Created MouseInputType enum

Added: branches/2.0-RC2/src/schmitzm/swing/event/MouseInputType.java
===================================================================
--- branches/2.0-RC2/src/schmitzm/swing/event/MouseInputType.java	2010-01-28 13:48:07 UTC (rev 628)
+++ branches/2.0-RC2/src/schmitzm/swing/event/MouseInputType.java	2010-01-28 13:54:44 UTC (rev 629)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ 
+ * Copyright (c) 2010 Martin O. J. Schmitz.
+ * 
+ * This file is part of the SCHMITZM library - a collection of utility 
+ * classes based on Java 1.6, focusing (not only) on Java Swing 
+ * and the Geotools library.
+ * 
+ * The SCHMITZM project is hosted at:
+ * http://wald.intevation.org/projects/schmitzm/
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public License (license.txt)
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ * or try this link: http://www.gnu.org/licenses/lgpl.html
+ * 
+ * Contributors:
+ *     Martin O. J. Schmitz - initial API and implementation
+ *     Stefan A. Krüger - additional utility classes
+ ******************************************************************************/
+package schmitzm.swing.event;
+
+/**
+ * This {@link Enum} describes different mouse input types that can be
+ * performed.
+ */
+
+public enum MouseInputType {
+
+	/** A click has been performed with the left mouse button **/
+	LClick,
+
+	/** A click has been performed with the right mouse button **/
+	RClick,
+
+	/**
+	 * A rectangle is being spanned via dragging with the left mouse button.
+	 * Button has not been released.
+	 */
+	LDrag,
+
+	/**
+	 * A rectangle is being spanned via dragging with the right mouse button.
+	 * Button has not been released.
+	 */
+	RDrag,
+
+	/**
+	 * A rectangle has been spanned via dragging with the left mouse button.
+	 * Button has been released.
+	 */
+	LWin,
+
+	/**
+	 * A rectangle has been spanned via dragging with the right mouse button.
+	 * Button has been released.
+	 */
+	RWin,
+
+	/** The mouse wheel has been used (in any direction) **/
+	Wheel
+
+}


Property changes on: branches/2.0-RC2/src/schmitzm/swing/event/MouseInputType.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Id URL
Name: svn:eol-style
   + native



More information about the Schmitzm-commits mailing list