Package avrora.util.profiling

Examples of avrora.util.profiling.Measurements


     */
    public GraphNumbers(JPanel parent) {

        parentPanel = parent;

        publicNumbers = new Measurements();
        privateNumbers = new Measurements();

        //Set option defaults
        lineColor = Color.GREEN; //default line color is green
        backColor = Color.BLACK; //default background color is black
        cursorColor = Color.CYAN;
View Full Code Here


     * to update the privateNumbers vector
     * returns true if it actually got some numbers, otherwise returns false
     * It might also be called by paint thread
     */
    public boolean internalUpdate() {
        Measurements newNumbers = publicNumbers;
        synchronized ( this ) {
            if ( newNumbers.size() == 0 ) {
                return false;
            }
            publicNumbers = new Measurements();
        }

        // add all the new numbers
        privateNumbers.addAll(newNumbers);
        int max = privateNumbers.max();
View Full Code Here

TOP

Related Classes of avrora.util.profiling.Measurements

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.