165 * bounds of the <code>GraphicsConfiguration</code> associated with 166 * the <code>Component</code>. 167 * <li>In a multi-screen environment with a virtual device: 168 * <br> 169 * The reported coordinates for mouse drag events are clipped to fit within the 170 * bounds of the virtual device associated with the <code>Component</code>. 171 * </ul> 172 * <p> 173 * An unspecified behavior will be caused if the {@code id} parameter 174 * of any particular {@code MouseEvent} instance is not 175 * in the range from {@code MOUSE_FIRST} to {@code MOUSE_LAST}-1 176 * ({@code MOUSE_WHEEL} is not acceptable). 177 * 178 * @author Carl Quinn 179 * 180 * @see MouseAdapter 181 * @see MouseListener 182 * @see MouseMotionAdapter 183 * @see MouseMotionListener 184 * @see MouseWheelListener 185 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/mouselistener.html">Tutorial: Writing a Mouse Listener</a> 186 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/mousemotionlistener.html">Tutorial: Writing a Mouse Motion Listener</a> 187 * 188 * @since 1.1 189 */ 190 public class MouseEvent extends InputEvent { 191 192 /** 193 * The first number in the range of ids used for mouse events. 194 */ 195 public static final int MOUSE_FIRST = 500; 196 197 /** 198 * The last number in the range of ids used for mouse events. 199 */ 200 public static final int MOUSE_LAST = 507; 201 202 /** 203 * The "mouse clicked" event. This <code>MouseEvent</code> 204 * occurs when a mouse button is pressed and released. 205 */ 206 public static final int MOUSE_CLICKED = MOUSE_FIRST; | 165 * bounds of the <code>GraphicsConfiguration</code> associated with 166 * the <code>Component</code>. 167 * <li>In a multi-screen environment with a virtual device: 168 * <br> 169 * The reported coordinates for mouse drag events are clipped to fit within the 170 * bounds of the virtual device associated with the <code>Component</code>. 171 * </ul> 172 * <p> 173 * An unspecified behavior will be caused if the {@code id} parameter 174 * of any particular {@code MouseEvent} instance is not 175 * in the range from {@code MOUSE_FIRST} to {@code MOUSE_LAST}-1 176 * ({@code MOUSE_WHEEL} is not acceptable). 177 * 178 * @author Carl Quinn 179 * 180 * @see MouseAdapter 181 * @see MouseListener 182 * @see MouseMotionAdapter 183 * @see MouseMotionListener 184 * @see MouseWheelListener 185 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html">Tutorial: Writing a Mouse Listener</a> 186 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/mousemotionlistener.html">Tutorial: Writing a Mouse Motion Listener</a> 187 * 188 * @since 1.1 189 */ 190 public class MouseEvent extends InputEvent { 191 192 /** 193 * The first number in the range of ids used for mouse events. 194 */ 195 public static final int MOUSE_FIRST = 500; 196 197 /** 198 * The last number in the range of ids used for mouse events. 199 */ 200 public static final int MOUSE_LAST = 507; 201 202 /** 203 * The "mouse clicked" event. This <code>MouseEvent</code> 204 * occurs when a mouse button is pressed and released. 205 */ 206 public static final int MOUSE_CLICKED = MOUSE_FIRST; |