Examples of KeyAdjustableFloat


Examples of org.xith3d.utility.input.KeyAdjustableFloat

   
    public void connectAll() {
       
        opSched.scheduleOperation(this);
       
        KeyAdjustableFloat heightAdjust = new KeyAdjustableFloat(
                Keys.PAGE_DOWN, Keys.PAGE_UP, .6f, opSched);
        new MemberConnection(this, "height", heightAdjust, "value", opSched);
       
        KeyAdjustableFloat angleAdjust = new KeyAdjustableFloat(
                Keys.RIGHT, Keys.LEFT, 50f, opSched);
        new MemberConnection(this, "angle", angleAdjust, "value", opSched);
       
        KeyAdjustableFloat distAdjust = new KeyAdjustableFloat(Keys.UP,
                Keys.DOWN, .6f, opSched);
        new MemberConnection(this, "distance", distAdjust, "value", opSched);
       
        new FloatLowerLimiter(heightAdjust, "value", .4f, opSched);
        new FloatUpperLimiter(heightAdjust, "value", 8f, opSched);
        heightAdjust.setValue(1f);
       
        new FloatLowerLimiter(distAdjust, "value", .4f, opSched);
        new FloatUpperLimiter(distAdjust, "value", 5f, opSched);
        distAdjust.setValue(1f);
       
    }
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.