JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
MouseListener.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright (c) 2010 JogAmp Community. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *
9 * - Redistribution of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistribution in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * Neither the name of Sun Microsystems, Inc. or the names of
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * This software is provided "AS IS," without a warranty of any kind. ALL
21 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
22 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
23 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
24 * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
25 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
26 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
27 * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
28 * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
29 * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
30 * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
31 * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32 *
33 */
34
35package com.jogamp.newt.event;
36
37import com.jogamp.newt.event.MouseEvent.PointerType;
38
39/**
40 * Listener for {@link MouseEvent}s.
41 *
42 * @see MouseEvent
43 */
44public interface MouseListener extends NEWTEventListener
45{
46 public void mouseClicked(MouseEvent e);
47 /** Only generated for {@link PointerType#Mouse} */
48 public void mouseEntered(MouseEvent e);
49 /** Only generated for {@link PointerType#Mouse} */
50 public void mouseExited(MouseEvent e);
51 public void mousePressed(MouseEvent e);
52 public void mouseReleased(MouseEvent e);
53 public void mouseMoved(MouseEvent e);
54 public void mouseDragged(MouseEvent e);
55
56 /**
57 * Traditional event name originally produced by a {@link PointerType#Mouse mouse} pointer type.
58 * <p>
59 * Triggered for any rotational pointer events, see
60 * {@link MouseEvent#getRotation()} and {@link MouseEvent#getRotationScale()}.
61 * </p>
62 */
64}
65
Pointer event of type PointerType.
Definition: MouseEvent.java:74
void mouseEntered(MouseEvent e)
Only generated for PointerType#Mouse.
void mouseExited(MouseEvent e)
Only generated for PointerType#Mouse.
void mouseWheelMoved(MouseEvent e)
Traditional event name originally produced by a mouse pointer type.