/** * @param parent */ public OpenIMAJ(PApplet parent) { this(); this.parent = parent; parent.registerMethod("dispose", this); parent.registerMethod("pre", this); }
public void automaticMode() { registered = true; // Before drawing. parent.registerMethod("pre", this); // At the end of drawing. parent.registerMethod("draw", this); }
/** * Register the "post" method, this is used to change the window location. */ private void registerPost() { applet.registerMethod("post", this); }
public void setParent(PApplet applet) { this.parent = applet; applet.registerMethod("dispose", this); }
private void registerKey() { applet.registerMethod("keyEvent", this); }
private void register() { this.isRegistered = true; parent.registerMethod("pre", this); parent.registerMethod("draw", this); // IDEA: register to save/load automatically. parent.registerMethod("keyEvent", this); // Do this so that the display is the last rendered. mainDisplay.registerAgain(); }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); } else { applet.unregisterMethod("draw", this); } }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); } else { applet.unregisterMethod("draw", this); } }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); } else { applet.unregisterMethod("draw", this); } }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); applet.registerMethod("mouseEvent", this); } else { applet.unregisterMethod("draw", this); applet.unregisterMethod("mouseEvent", this); } }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); applet.registerMethod("mouseEvent", this); } else { applet.unregisterMethod("draw", this); applet.unregisterMethod("mouseEvent", this); } }
private void setActive(boolean active) { if (active) { applet.registerMethod("dispose", this); applet.registerMethod("draw", this); applet.registerMethod("mouseEvent", this); } else { applet.unregisterMethod("draw", this); applet.unregisterMethod("mouseEvent", this); } }
/** * May or may not be required for use in Web Applet it works so why worry as * used by Jonathan Feinberg peasycam, and that works OK * * @param active boolean */ final void setActive(boolean active) { if (active != isActive) { isActive = active; if (active) { this.parent.registerMethod("dispose", this); this.parent.registerMethod("pre", this); this.parent.registerMethod("mouseEvent", this); this.parent.registerMethod("keyEvent", this); } else { this.parent.unregisterMethod("pre", this); this.parent.unregisterMethod("mouseEvent", this); this.parent.unregisterMethod("keyEvent", this); } } }
/** * Register or unregister reflection methods * @param active */ final void setActive(boolean active) { if (active) { this.app.registerMethod("pre", this); this.app.registerMethod("draw", this); this.app.registerMethod("post", this); this.app.registerMethod("mouseEvent", this); this.app.registerMethod("keyEvent", this); this.app.registerMethod("dispose", this); } else { this.app.unregisterMethod("pre", this); this.app.unregisterMethod("draw", this); this.app.unregisterMethod("post", this); this.app.unregisterMethod("mouseEvent", this); this.app.unregisterMethod("keyEvent", this); } }