Examples of newScale()


Examples of org.zkoss.zul.DialModel.newScale()

    // Chart Dial
    final Random random = new Random();
    final int val = random.nextInt(100);

    final DialModel dialmodel = new DialModel();
    final DialModelScale scale = dialmodel.newScale(0.0, 500.0, -120.0, -300.0, 100.0, 4);// scale's

    // configuration data
    scale.setText("Users");
    scale.newRange(450, 500, "#FF0000", 0.83, 0.89);
    scale.newRange(360, 450, "#FFC426", 0.83, 0.89);
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.