private static String intArToColor(int[] ar) {
        assert ar.length == 4;

        String tmp = UIRegex.ARGB + "(";
        for (int i = 0; i < ar.length; i++) {
            tmp += ar[i];

            if (i != (ar.length - 1)) {
                tmp += ",";
            }
        }
        tmp += ")";
        return tmp;
    }