��ֵ���㹤����
| 6 | * ��ֵ���㹤���� |
| 7 | */ |
| 8 | public class CalcTool { |
| 9 | /** |
| 10 | * ����Įȡɫ����ֵ���ַ���"RRGGBB"ת��ΪColor��ɫ���� |
| 11 | * @param dmC ��Į��ɫֵ���ַ��� |
| 12 | * @return ����Color���� |
| 13 | */ |
| 14 | public static Color dmCToC(String dmC){ |
| 15 | Color c =null; |
| 16 | try{ |
| 17 | c = new Color(Integer.parseInt(dmC.substring(0, 2),16), |
| 18 | Integer.parseInt(dmC.substring(2, 4),16), |
| 19 | Integer.parseInt(dmC.substring(4, 6),16)); |
| 20 | } |
| 21 | catch(NumberFormatException e){ |
| 22 | e.printStackTrace(); |
| 23 | } |
| 24 | return c; |
| 25 | } |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected