@Test public void testFromColorHex() throws Exception { assertEquals(16, CSSUtils.fromColorHex("#100000").r); assertEquals(17, CSSUtils.fromColorHex("#001100").g); assertEquals(18, CSSUtils.fromColorHex("#000012").b); }
public static Color fromColorHex(String aValue) { String theR = aValue.substring(1, 3); String theG = aValue.substring(3, 5); String theB = aValue.substring(5); return new Color(fromHex(theR), fromHex(theG), fromHex(theB)); }
CSSUtils { public static Color fromColorHex(String aValue) { String theR = aValue.substring(1, 3); String theG = aValue.substring(3, 5); String theB = aValue.substring(5); return new Color(fromHex(theR), fromHex(theG), fromHex(theB)); } }
CSSUtils { public static Color fromColorHex(String aValue) { String theR = aValue.substring(1, 3); String theG = aValue.substring(3, 5); String theB = aValue.substring(5); return new Color(fromHex(theR), fromHex(theG), fromHex(theB)); }  }
CSSUtils { public static Color fromColorHex(String aValue) { String theR = aValue.substring(1, 3); String theG = aValue.substring(3, 5); String theB = aValue.substring(5); return new Color(fromHex(theR), fromHex(theG), fromHex(theB)); }  static String toFont(Font aFont); static String toFontFamily(Font aFont); static String toColor(Color aColor); static String toColorHex(Color aColor); static int toInt(Color aColor); static Color fromColorHex(String aValue); }
CSSUtils { public static Color fromColorHex(String aValue) { String theR = aValue.substring(1, 3); String theG = aValue.substring(3, 5); String theB = aValue.substring(5); return new Color(fromHex(theR), fromHex(theG), fromHex(theB)); }  static String toFont(Font aFont); static String toFontFamily(Font aFont); static String toColor(Color aColor); static String toColorHex(Color aColor); static int toInt(Color aColor); static Color fromColorHex(String aValue);  }