Examples of thresholdCrossed()


Examples of org.rioproject.system.MeasuredResource.thresholdCrossed()

    }

    private JLabel getThresholdLabel(final String columnName, final String text, final ComputeResourceUtilization cru) {
        JLabel label = new JLabel(text);
        MeasuredResource mRes = getMeasuredResource(columnName, cru);
        if(mRes!=null && mRes.thresholdCrossed()) {
            label.setForeground(new Color(178, 34, 34));
            label.setFont(label.getFont().deriveFont(Font.BOLD));
        } else {
            label.setForeground(new Color(0, 100, 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.