All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.magician.GLEventMulticaster
Summary |
public class GLEventMulticaster extends java.lang.Object implements com.hermetica.magician.GLEventListener { // Fields 2 protected final GLEventListener _head; protected final GLEventListener _tail; // Constructors 1 protected GLEventMulticaster(GLEventListener, GLEventListener); // Methods 7 public static GLEventListener add(GLEventListener, GLEventListener); public static GLEventListener remove(GLEventListener, GLEventListener); public void display(GLDrawable); public GL getGL(); public void initialize(GLDrawable); protected GLEventListener remove(GLEventListener); public void reshape(GLDrawable, int, int, int, int); }
Fields |
· _head | Summary | Top |
protected final GLEventListener _head
· _tail | Summary | Top |
protected final GLEventListener _tail
Constructors |
· GLEventMulticaster | Summary | Top |
protected GLEventMulticaster(GLEventListener head, GLEventListener tail)
Creates an event multicaster instance which chains two listeners head and tail together.
Methods |
· add | Summary | Top |
public static GLEventListener add(GLEventListener head, GLEventListener tail)
Returns an event multicaster from listeners head and tail. If either head or tail is null, the other is returned (no multicaster is created). Otherwise, a new multicaster is created which chains head and tail together.
· remove | Summary | Top |
protected GLEventListener remove(GLEventListener removee)
Removes a listener from this multicaster and returns the resulting multicaster listener.
· remove | Summary | Top |
public static GLEventListener remove(GLEventListener target, GLEventListener removee)
Returns the resulting multicaster listener after removing the removee listener from the target listener. If target is null or removee equals target, null is returned.
Parameter Description target the listener removee is being removed from removee the listener being removed
· initialize | Summary | Top |
public void initialize(GLDrawable component)
Forwards the initialize event to both listeners _head and _tail.
Parameter Description component the GLComponent generating the event
- Implements:
- initialize in interface GLEventListener
· display | Summary | Top |
public void display(GLDrawable component)
Forwards the display event to both listeners _head and _tail.
Parameter Description component the GLComponent generating the event
- Implements:
- display in interface GLEventListener
· reshape | Summary | Top |
public void reshape(GLDrawable component, int x, int y, int width, int height)
Forwards the reshape event to both listeners _head and _tail.
Parameter Description component the GLComponent generating the event
- Implements:
- reshape in interface GLEventListener
· getGL | Summary | Top |
public GL getGL()
Returns a valid CoreGL pipeline
- Implements:
- getGL in interface GLEventListener
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7