Color function ( String arg0 ) { int [ ] loc0 = new int [ 1 ] ; loc0 [ 0 ] = 4 ; int loc1 = getColorComponent ( arg0 , loc0 ) ; int loc2 = getColorComponent ( arg0 , loc0 ) ; int loc3 = getColorComponent ( arg0 , loc0 ) ; return new Color ( loc1 , loc2 , loc3 ) ; }
parses a string in the format rgb r , g , b where each of the color components is either an integer , or a floating number with a % after indicating a percentage value of 255 . values are constrained to fit with 0-255 . the resulting color is returned . concode_field_sep String OPEN concode_elem_sep String[] DEFAULT_FONT_KEYS concode_elem_sep String FONT_STYLE_KEY concode_elem_sep int LENGTH_PREFIX concode_elem_sep String FONT_SIZE_KEY concode_elem_sep String FONT_WEIGHT_KEY concode_elem_sep String FONT_FAMILY_KEY concode_elem_sep String SEMI concode_elem_sep int DEFAULT_FONT_FAMILY_KEY concode_elem_sep String[] DEFAULT_FONT_VALUES concode_elem_sep Map<String,String> attributes concode_elem_sep int DEFAULT_FONT_SIZE_KEY concode_elem_sep String name concode_elem_sep String COLON concode_elem_sep String FONT_COLOR_KEY concode_elem_sep String CLOSE concode_field_sep Style getDefaultStyle concode_elem_sep String getName concode_elem_sep Map<String,String> getAttributes concode_elem_sep void setAttributes concode_elem_sep void setDefaultAttributes concode_elem_sep int getColorComponent concode_elem_sep Color hexToColor concode_elem_sep void setAttribute concode_elem_sep String getAttribute concode_elem_sep Style getStyle concode_elem_sep org.osid.shared.Type getType concode_elem_sep Font getFont concode_elem_sep String toString concode_elem_sep Color stringToColor concode_elem_sep String colorToHex concode_elem_sep String toCSS