diff options
author | Sven Gothel <[email protected]> | 2001-02-23 05:20:21 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-02-23 05:20:21 +0000 |
commit | 86443be0a3795fa860850f0cf81ae7cc6843858d (patch) | |
tree | 2c03c1da3f6deb45eed12e7503821f73a504697f /gl4java/drawable/GLDrawable.java | |
parent | 991622dd909d94b6ed83b84b744f0839b9ab6807 (diff) |
Version 2.6.0.0rel-2-6-0-0
Diffstat (limited to 'gl4java/drawable/GLDrawable.java')
-rw-r--r-- | gl4java/drawable/GLDrawable.java | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/gl4java/drawable/GLDrawable.java b/gl4java/drawable/GLDrawable.java new file mode 100644 index 0000000..a0818c0 --- /dev/null +++ b/gl4java/drawable/GLDrawable.java @@ -0,0 +1,73 @@ +package gl4java.drawable;
+
+import java.awt.event.*;
+import java.util.EventListener;
+
+import gl4java.*;
+
+/** Abstracts common functionality among the OpenGL components such as
+ GLCanvas and GLJPanel. The GLDrawable/GLEventListener interfaces
+ allow client code to draw using OpenGL without subclassing. */
+
+public interface GLDrawable
+{
+ /** Add a GLEventListener to this drawable. If multiple listeners
+ are added to a given drawable, they are notified of events in an
+ arbitrary order. */
+ public void addGLEventListener(GLEventListener listener);
+
+ /** Remove a GLEventListener from this drawable. */
+ public void removeGLEventListener(GLEventListener listener);
+
+ /** Gets the GL functions used by this drawable. */
+ public GLFunc getGL();
+
+ /** Gets the GLU functions used by this drawable. */
+ public GLUFunc getGLU();
+
+ /**
+ * Used to return the created GLContext
+ */
+ public GLContext getGLContext();
+
+ /**
+ * the components listener's should be implemented also !
+ * since JDK 1.1
+ */
+ public void addComponentListener(ComponentListener l);
+ public void removeComponentListener(ComponentListener l);
+ public void addFocusListener(FocusListener l);
+ public void addKeyListener(KeyListener l);
+ public void removeFocusListener(FocusListener l);
+ public void addMouseListener(MouseListener l);
+ public void removeMouseListener(MouseListener l);
+ public void addMouseMotionListener(MouseMotionListener l);
+ public void removeMouseMotionListener(MouseMotionListener l);
+
+ /**
+ * JDK 1.2 the components listener's are left,
+ * because of JDK 1.1 compatibility
+ *
+ public void addInputMethodListener(InputMethodListener l);
+ public void removeInputMethodListener(InputMethodListener l);
+ */
+
+ /**
+ * JDK 1.3 the components listener's are left,
+ * because of JDK 1.1 compatibility
+ *
+ public void addHierarchyListener(HierarchyListener l);
+ public void removeHierarchyListener(HierarchyListener l);
+ public void addHierarchyBoundsListener(HierarchyBoundsListener l);
+ public void removeHierarchyBoundsListener(HierarchyBoundsListener l);
+ */
+
+
+ /**
+ * JDK 1.3 the listener's methods are left,
+ * because of JDK 1.1 compatibility
+ * since JDK 1.3, e.g. implemented within GLCanvas
+ *
+ public EventListener[] getListeners(Class listenerType);
+ */
+}
|