Examples of optDouble()


Examples of org.richfaces.json.JSONArray.optDouble()

        if (data != null) {
            JSONArray last = data.optJSONArray(data.length() - 1);
            if (last != null) {
                // x value of last element ~ number of ticks
                // barWidth = 1 / (points-per-tick + 1)
                return 1 / (data.length() / last.optDouble(0) + 1);
            }
        }

        return 1.0;
    }
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.