@Test public void testColor4() throws Exception { int color = WXResourceUtils.getColor("rgb(255, 255, 255)"); assertEquals(color, 0xffffffff); color = WXResourceUtils.getColor("rgb(000000, 255, 255)"); assertEquals(color, 0xff00ffff); color = WXResourceUtils.getColor("rgb(256, 256, 256)"); assertEquals(color, 0xffffffff); color = WXResourceUtils.getColor("rgb(-1, 255, 255)"); assertEquals(color, 0xff00ffff); }
public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); } }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  static int getColor(String color); static int getColor(String color, int defaultColor); static Shader getShader(String image, float width, float height); }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  static int getColor(String color); static int getColor(String color, int defaultColor); static Shader getShader(String image, float width, float height);  }