Package react

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


    /**
     * 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

Related Classes of react.UnitSlot

Copyright © 2018 www.massapicom. 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.