JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
ComponentEvents.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * - Redistribution of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * - Redistribution in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * Neither the name of Sun Microsystems, Inc. or the names of
16 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
18 *
19 * This software is provided "AS IS," without a warranty of any kind. ALL
20 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
21 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
23 * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
24 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
25 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
26 * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
27 * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
28 * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
29 * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
30 * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
31 *
32 * You acknowledge that this software is not designed or intended for use
33 * in the design, construction, operation or maintenance of any nuclear
34 * facility.
35 *
36 * Sun gratefully acknowledges that this software was originally authored
37 * and developed by Kenneth Bradley Russell and Christopher John Kline.
38 */
39
40package com.jogamp.opengl.awt;
41
42import com.jogamp.opengl.*;
43import java.awt.event.*;
44import java.beans.PropertyChangeListener;
45
46/** Factors out the listener manipulation for the events supported by
47 all of the {@link GLDrawable} implementations. Provided to reduce
48 clutter in the documentation for GLDrawable. */
49
50public interface ComponentEvents {
51 public void addComponentListener(ComponentListener l);
52 public void removeComponentListener(ComponentListener l);
53 public void addFocusListener(FocusListener l);
54 public void removeFocusListener(FocusListener l);
55 public void addHierarchyBoundsListener(HierarchyBoundsListener l);
56 public void removeHierarchyBoundsListener(HierarchyBoundsListener l);
57 public void addHierarchyListener(HierarchyListener l);
58 public void removeHierarchyListener(HierarchyListener l);
59 public void addInputMethodListener(InputMethodListener l);
60 public void removeInputMethodListener(InputMethodListener l);
61 public void addKeyListener(KeyListener l);
62 public void removeKeyListener(KeyListener l);
63 public void addMouseListener(MouseListener l);
64 public void removeMouseListener(MouseListener l);
65 public void addMouseMotionListener(MouseMotionListener l);
66 public void removeMouseMotionListener(MouseMotionListener l);
67 public void addMouseWheelListener(MouseWheelListener l);
68 public void removeMouseWheelListener(MouseWheelListener l);
69 public void addPropertyChangeListener(PropertyChangeListener listener);
70 public void removePropertyChangeListener(PropertyChangeListener listener);
71 public void addPropertyChangeListener(String propertyName,
72 PropertyChangeListener listener);
73 public void removePropertyChangeListener(String propertyName,
74 PropertyChangeListener listener);
75}
Factors out the listener manipulation for the events supported by all of the GLDrawable implementatio...
void addMouseListener(MouseListener l)
void removeFocusListener(FocusListener l)
void addInputMethodListener(InputMethodListener l)
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
void removeMouseListener(MouseListener l)
void removeHierarchyBoundsListener(HierarchyBoundsListener l)
void removeComponentListener(ComponentListener l)
void removePropertyChangeListener(PropertyChangeListener listener)
void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
void removeInputMethodListener(InputMethodListener l)
void removeHierarchyListener(HierarchyListener l)
void addFocusListener(FocusListener l)
void addHierarchyBoundsListener(HierarchyBoundsListener l)
void addPropertyChangeListener(PropertyChangeListener listener)
void addMouseMotionListener(MouseMotionListener l)
void removeMouseWheelListener(MouseWheelListener l)
void addHierarchyListener(HierarchyListener l)
void addComponentListener(ComponentListener l)
void removeMouseMotionListener(MouseMotionListener l)
void removeKeyListener(KeyListener l)
void addMouseWheelListener(MouseWheelListener l)