Examples of UnitSlot


Examples of react.UnitSlot

    /**
     * Configures this emitter to self-destruct when it runs out of particles.
     */
    public void destroyOnEmpty () {
        onEmpty.connect(new UnitSlot() { @Override public void onEmit () { destroy(); }});
    }
View Full Code Here

Examples of react.UnitSlot

    /**
     * Returns a slot that calls render. Useful if your {@link #paint(Canvas)} method uses a react
     * value.
     */
    protected UnitSlot renderSlot () {
        return new UnitSlot() {
            @Override public void onEmit () { render(); }
        };
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.