(int color)
| 357 | } |
| 358 | |
| 359 | public static String getColorString(int color) { |
| 360 | StringBuffer ncolor=new StringBuffer(); |
| 361 | ncolor.append("0x"); |
| 362 | String col=Integer.toHexString(color); |
| 363 | for (int i=0; i<6-col.length(); i++) |
| 364 | ncolor.append("0"); |
| 365 | ncolor.append(col); |
| 366 | return ncolor.toString(); |
| 367 | } |
| 368 | |
| 369 | public static int getRed(int color) { |
| 370 | return ((color >> 16) & 0xFF); |
no test coverage detected