KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > swixml > converters > InputEvent


1 /*--
2  $Id: InputEvent.java,v 1.1 2004/03/01 07:56:00 wolfpaulus Exp $
3
4  Copyright (C) 2003-2004 Wolf Paulus.
5  All rights reserved.
6
7  Redistribution and use in source and binary forms, with or without
8  modification, are permitted provided that the following conditions
9  are met:
10
11  1. Redistributions of source code must retain the above copyright
12  notice, this list of conditions, and the following disclaimer.
13
14  2. Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions, and the disclaimer that follows
16  these conditions in the documentation and/or other materials provided
17  with the distribution.
18
19  3. The end-user documentation included with the redistribution,
20  if any, must include the following acknowledgment:
21         "This product includes software developed by the
22          SWIXML Project (http://www.swixml.org/)."
23  Alternately, this acknowledgment may appear in the software itself,
24  if and wherever such third-party acknowledgments normally appear.
25
26  4. The name "Swixml" must not be used to endorse or promote products
27  derived from this software without prior written permission. For
28  written permission, please contact <info_AT_swixml_DOT_org>
29
30  5. Products derived from this software may not be called "Swixml",
31  nor may "Swixml" appear in their name, without prior written
32  permission from the Swixml Project Management.
33
34  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
35  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37  DISCLAIMED. IN NO EVENT SHALL THE SWIXML PROJECT OR ITS
38  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
41  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
44  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45  SUCH DAMAGE.
46  ====================================================================
47
48  This software consists of voluntary contributions made by many
49  individuals on behalf of the Swixml Project and was originally
50  created by Wolf Paulus <wolf_AT_swixml_DOT_org>. For more information
51  on the Swixml Project, please see <http://www.swixml.org/>.
52 */

53 package org.swixml.converters;
54
55 import java.awt.*;
56
57
58 public interface InputEvent {
59
60   /**
61    * The shift key modifier constant.
62    * It is recommended that SHIFT_DOWN_MASK to be used instead.
63    */

64   public static final int SHIFT_MASK = Event.SHIFT_MASK;
65
66   /**
67    * The control key modifier constant.
68    * It is recommended that CTRL_DOWN_MASK to be used instead.
69    */

70   public static final int CTRL_MASK = Event.CTRL_MASK;
71
72   /**
73    * The meta key modifier constant.
74    * It is recommended that META_DOWN_MASK to be used instead.
75    */

76   public static final int META_MASK = Event.META_MASK;
77
78   /**
79    * The alt key modifier constant.
80    * It is recommended that ALT_DOWN_MASK to be used instead.
81    */

82   public static final int ALT_MASK = Event.ALT_MASK;
83
84   /**
85    * The alt-graph key modifier constant.
86    */

87   public static final int ALT_GRAPH_MASK = 1 << 5;
88
89   /**
90    * The mouse button1 modifier constant.
91    * It is recommended that BUTTON1_DOWN_MASK to be used instead.
92    */

93   public static final int BUTTON1_MASK = 1 << 4;
94
95   /**
96    * The mouse button2 modifier constant.
97    * It is recommended that BUTTON2_DOWN_MASK to be used instead.
98    */

99   public static final int BUTTON2_MASK = Event.ALT_MASK;
100
101   /**
102    * The mouse button3 modifier constant.
103    * It is recommended that BUTTON3_DOWN_MASK to be used instead.
104    */

105   public static final int BUTTON3_MASK = Event.META_MASK;
106
107   /**
108    * The SHIFT key extended modifier constant.
109    * @since 1.4
110    */

111   public static final int SHIFT_DOWN_MASK = 1 << 6;
112
113   /**
114    * The CTRL key extended modifier constant.
115    * @since 1.4
116    */

117   public static final int CTRL_DOWN_MASK = 1 << 7;
118
119   /**
120    * The META key extended modifier constant.
121    * @since 1.4
122    */

123   public static final int META_DOWN_MASK = 1 << 8;
124
125   /**
126    * The ALT key extended modifier constant.
127    * @since 1.4
128    */

129   public static final int ALT_DOWN_MASK = 1 << 9;
130
131   /**
132    * The mouse button1 extended modifier constant.
133    * @since 1.4
134    */

135   public static final int BUTTON1_DOWN_MASK = 1 << 10;
136
137   /**
138    * The mouse button2 extended modifier constant.
139    * @since 1.4
140    */

141   public static final int BUTTON2_DOWN_MASK = 1 << 11;
142
143   /**
144    * The mouse button3 extended modifier constant.
145    * @since 1.4
146    */

147   public static final int BUTTON3_DOWN_MASK = 1 << 12;
148
149   /**
150    * The alt-graph key extended modifier constant.
151    * @since 1.4
152    */

153   public static final int ALT_GRAPH_DOWN_MASK = 1 << 13;
154
155
156   static final int JDK_1_3_MODIFIERS = SHIFT_DOWN_MASK - 1;
157
158 }
159
160 ;
161
Popular Tags