SAP ABAP Class CL_THTMLB_COLOR_UTIL (test)
Hierarchy
WEBCUIF (Software Component) SAP Web UI Framework
   CA-WUI-UI-TAG (Application Component) Tag Library
     BSP_DYN_CONFIG_TAG_LIB (Package) New tag library for CRM IC
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_CRM_WEB_CALLBACK Interface for handler method of service callback 20090317
Properties
Class CL_THTMLB_COLOR_UTIL  
Short Description test    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package BSP_DYN_CONFIG_TAG_LIB   New tag library for CRM IC 
Created 20090304   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_CRM_WEB_CALLBACK Interface for handler method of service callback 20090317
Friends
Class CL_THTMLB_COLOR_UTIL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_COMMAND_HIGH_CONTRAST Constant Public Type reference (TYPE) STRING 'HC' comman to turn in black and white 20100317
2 GC_COMMAND_HIGH_CONTRAST_INV Constant Public Type reference (TYPE) STRING 'HCI' 20100317
3 GC_COMMAND_PREFIX Constant Public Type reference (TYPE) STRING '$' 20100317
4 GT_HIGH_CONTRAST_BLACK_ICONS Static Attribute Protected Type reference (TYPE) ICON_TAB list of high contrast black icons in mime rep 20100317
5 GV_DEBUG_PATH Static Attribute Protected Type reference (TYPE) STRING 20100611
6 GV_IS_SHORT_COLOR Static Attribute Protected Type reference (TYPE) ABAP_BOOL Flag if the color code is short (3 chars instead of 6) 20130418
Methods
# Method Level Visibility Method type Description Created on
1 ADJUST_SHIFT Static method Public Method 20090304
2 APPLY Static method Protected Method 20091124
3 CHANGE_COLOR Static method Public Method 20090304
4 COLORIZE_CSS Static method Public Method 20090926
5 COLORIZE_FLEX_CSS_BLACK_WHITE Static method Public Method Colorizes a Flex CSS for Black&White High Contrast skin 20100901
6 DEC_TO_HEX Static method Public Method 20090304
7 GET_COLOR_PERS Static method Public Method 20090304
8 GET_HARMONICCOLOR_PERS Static method Public Method 20090317
9 GET_IMAGE_REPLACE_URL Static method Public Method 20100317
10 GET_IMAGE_REPLACE_URL_HCB Static method Public Method 20100317
11 GREYSCALE Static method Protected Method 20091124
12 GREYSCALE_INVERT Static method Protected Method 20100315
13 HEX_TO_DEC Static method Public Method 20090304
14 HEX_TO_RGB Static method Public Method 20090304
15 HIGH_CONTRAST Static method Protected Method 20091206
16 HIGH_CONTRAST_2 Static method Protected Method 20100107
17 HSL_TO_RGB Static method Public Method 20090304
18 HUE_TO_RGB Static method Public Method 20090304
19 INIT Static method Protected Method 20091119
20 INVERT Static method Protected Method 20091119
21 NORMALIZE_COLOR_CODE Static method Public Method 20090617
22 RGB_TO_HEX Static method Public Method 20090304
23 RGB_TO_HSL Static method Public Method 20090304
24 SET_COLOR_PERS Static method Public Method 20090304
25 SET_HARMONICCOLOR_PERS Static method Public Method 20090317
Events
Class CL_THTMLB_COLOR_UTIL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 COLOR_STRUC Public See coding 20091119 BEGIN OF COLOR_STRUC, RGB TYPE STRING, RED TYPE I, GREEN TYPE I, BLUE TYPE I, H TYPE DEC, S TYPE DEC, L TYPE DEC, END OF COLOR_STRUC
2 DEC Public See coding 20090304 DEC TYPE P LENGTH 5 DECIMALS 5
3 ICON_STRUC Protected See coding 20100317 BEGIN OF ICON_STRUC, NAME TYPE STRING, END OF ICON_STRUC
4 ICON_TAB Protected See coding 20100317 ICON_TAB TYPE SORTED TABLE OF ICON_STRUC WITH UNIQUE KEY NAME
Method Signatures

Method ADJUST_SHIFT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_B Value transfer Type reference (TYPE) DEC 20090304
2 Importing IV_A Call by reference Type reference (TYPE) DEC 20090304
3 Importing IV_B Call by reference Type reference (TYPE) DEC 20090304
4 Importing IV_BASE_A Call by reference Type reference (TYPE) DEC 20090304

Method ADJUST_SHIFT on class CL_THTMLB_COLOR_UTIL has no exception.

Method APPLY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_NEW_RGB Value transfer Type reference (TYPE) STRING 20091124
2 Importing IS_BASE_COLOR Call by reference Type reference (TYPE) COLOR_STRUC 20091124
3 Importing IV_COLOR_SHIFT Call by reference Type reference (TYPE) DEC 20091124
4 Importing IV_COMMAND Call by reference Type reference (TYPE) STRING 20091124
5 Importing IV_H_TOLERANCE Call by reference Type reference (TYPE) DEC 20091124
6 Importing IV_LUMINANCE_SHIFT Call by reference Type reference (TYPE) DEC 20091124
7 Importing IV_OLD_RGB Call by reference Type reference (TYPE) STRING 20091124
8 Importing IV_SATURATION_SHIFT Call by reference Type reference (TYPE) DEC 20091124

Method APPLY on class CL_THTMLB_COLOR_UTIL has no exception.

Method CHANGE_COLOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_NEW_RGB Value transfer Type reference (TYPE) STRING 20090304
2 Importing IV_BASE_H Call by reference Type reference (TYPE) DEC 20091119
3 Importing IV_BASE_L Call by reference Type reference (TYPE) DEC 20090304
4 Importing IV_BASE_S Call by reference Type reference (TYPE) DEC 20090304
5 Importing IV_COLOR_SHIFT Call by reference Type reference (TYPE) DEC 20090304
6 Importing IV_H_TOLERANCE Call by reference Type reference (TYPE) DEC 20091119
7 Importing IV_LUMINANCE_SHIFT Call by reference Type reference (TYPE) DEC 20090304
8 Importing IV_OLD_RGB Call by reference Type reference (TYPE) STRING 20090304
9 Importing IV_SATURATION_SHIFT Call by reference Type reference (TYPE) DEC 20090304

Method CHANGE_COLOR on class CL_THTMLB_COLOR_UTIL has no exception.

Method COLORIZE_CSS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COLOR Call by reference Type reference (TYPE) STRING 20090926
2 Importing IV_CURRENT_SKIN_PATH Call by reference Type reference (TYPE) STRING 20090926
3 Importing IV_ORIGINAL_CSS Call by reference Type reference (TYPE) STRING 20090926
4 Returning RV_COLORIZED_CSS Value transfer Type reference (TYPE) STRING 20090926

Method COLORIZE_CSS on class CL_THTMLB_COLOR_UTIL has no exception.

Method COLORIZE_FLEX_CSS_BLACK_WHITE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CURRENT_SKIN_PATH Call by reference Type reference (TYPE) STRING 20100902
2 Importing IV_ORIGINAL_CSS Call by reference Type reference (TYPE) STRING 20100901
3 Returning RV_COLORIZED_CSS Value transfer Type reference (TYPE) STRING 20100901

Method COLORIZE_FLEX_CSS_BLACK_WHITE on class CL_THTMLB_COLOR_UTIL has no exception.

Method DEC_TO_HEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_HEX Value transfer Type reference (TYPE) BCFARBTYP Color 20090304
2 Importing IV_DEC Call by reference Type reference (TYPE) I 20090304

Method DEC_TO_HEX on class CL_THTMLB_COLOR_UTIL has no exception.

Method GET_COLOR_PERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_COLOR Value transfer Type reference (TYPE) STRING 20090304
2 Importing IV_PERS_LEVEL Call by reference Type reference (TYPE) INT1 1 Level of personalization to check 20130219

Method GET_COLOR_PERS on class CL_THTMLB_COLOR_UTIL has no exception.

Method GET_HARMONICCOLOR_PERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_HARMONICCOLOR Value transfer Type reference (TYPE) STRING 20090317

Method GET_HARMONICCOLOR_PERS on class CL_THTMLB_COLOR_UTIL has no exception.

Method GET_IMAGE_REPLACE_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_URL Value transfer Type reference (TYPE) STRING 20100317
2 Importing IV_COLOR Call by reference Type reference (TYPE) STRING RGB or command 20100317
3 Importing IV_PATH Call by reference Type reference (TYPE) STRING url path 20100317

Method GET_IMAGE_REPLACE_URL on class CL_THTMLB_COLOR_UTIL has no exception.

Method GET_IMAGE_REPLACE_URL_HCB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_URL Value transfer Type reference (TYPE) STRING 20100317
2 Importing IV_COLOR Call by reference Type reference (TYPE) STRING RGB or command 20100317
3 Importing IV_ICON_NAME Call by reference Type reference (TYPE) STRING icon name 20100317
4 Importing IV_URL Call by reference Type reference (TYPE) STRING url path with skin name 20100317

Method GET_IMAGE_REPLACE_URL_HCB on class CL_THTMLB_COLOR_UTIL has no exception.

Method GREYSCALE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_RGB_COLOR Value transfer Type reference (TYPE) STRING 20091124
2 Importing IV_RGB_COLOR Call by reference Type reference (TYPE) STRING 20091124

Method GREYSCALE on class CL_THTMLB_COLOR_UTIL has no exception.

Method GREYSCALE_INVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_RGB_COLOR Value transfer Type reference (TYPE) STRING 20100315
2 Importing IV_RGB_COLOR Call by reference Type reference (TYPE) STRING 20100315

Method GREYSCALE_INVERT on class CL_THTMLB_COLOR_UTIL has no exception.

Method HEX_TO_DEC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_DEC Value transfer Type reference (TYPE) I 20090304
2 Importing IV_HEX Call by reference Type reference (TYPE) BCFARBTYP Color 20090304

Method HEX_TO_DEC on class CL_THTMLB_COLOR_UTIL has no exception.

Method HEX_TO_RGB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_BLUE Call by reference Type reference (TYPE) I 20090304
2 Exporting EV_GREEN Call by reference Type reference (TYPE) I 20090304
3 Exporting EV_RED Call by reference Type reference (TYPE) I 20090304
4 Importing IV_HEX_RGB Call by reference Type reference (TYPE) STRING 20090304

Method HEX_TO_RGB on class CL_THTMLB_COLOR_UTIL has no exception.

Method HIGH_CONTRAST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_RGB_COLOR Value transfer Type reference (TYPE) STRING 20091206
2 Importing IV_BLACK Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20091206
3 Importing IV_RGB_COLOR Call by reference Type reference (TYPE) STRING 20091206

Method HIGH_CONTRAST on class CL_THTMLB_COLOR_UTIL has no exception.

Method HIGH_CONTRAST_2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_STYLES Value transfer Type reference (TYPE) STRING 20100107
2 Importing IV_STYLES Call by reference Type reference (TYPE) STRING 20100107

Method HIGH_CONTRAST_2 on class CL_THTMLB_COLOR_UTIL has no exception.

Method HSL_TO_RGB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_BLUE Call by reference Type reference (TYPE) I 20090304
2 Exporting EV_GREEN Call by reference Type reference (TYPE) I 20090304
3 Exporting EV_RED Call by reference Type reference (TYPE) I 20090304
4 Importing IV_H Call by reference Type reference (TYPE) DEC 20090304
5 Importing IV_L Call by reference Type reference (TYPE) DEC 20090304
6 Importing IV_S Call by reference Type reference (TYPE) DEC 20090304

Method HSL_TO_RGB on class CL_THTMLB_COLOR_UTIL has no exception.

Method HUE_TO_RGB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_RGB Value transfer Type reference (TYPE) DEC 20090304
2 Importing IV_HUE Call by reference Type reference (TYPE) DEC 20090304
3 Importing IV_V1 Call by reference Type reference (TYPE) DEC 20090304
4 Importing IV_V2 Call by reference Type reference (TYPE) DEC 20090304

Method HUE_TO_RGB on class CL_THTMLB_COLOR_UTIL has no exception.

Method INIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_BASE_COLOR Call by reference Type reference (TYPE) COLOR_STRUC 20091119
2 Exporting ES_COLOR Call by reference Type reference (TYPE) COLOR_STRUC 20091119
3 Exporting EV_COLOR_SHIFT Call by reference Type reference (TYPE) DEC 20091119
4 Exporting EV_COMMAND Call by reference Type reference (TYPE) STRING 20091119
5 Exporting EV_LUMINANCE_SHIFT Call by reference Type reference (TYPE) DEC 20091119
6 Exporting EV_SATURATION_SHIFT Call by reference Type reference (TYPE) DEC 20091119
7 Importing IV_COLOR Call by reference Type reference (TYPE) STRING 20091119
8 Importing IV_CURRENT_SKIN_PATH Call by reference Type reference (TYPE) STRING 20091119

Method INIT on class CL_THTMLB_COLOR_UTIL has no exception.

Method INVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_INVERTED_RGB_COLOR Value transfer Type reference (TYPE) STRING 20091119
2 Importing IV_RGB_COLOR Call by reference Type reference (TYPE) STRING 20091119

Method INVERT on class CL_THTMLB_COLOR_UTIL has no exception.

Method NORMALIZE_COLOR_CODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_COLOR_CODE Value transfer Type reference (TYPE) STRING 20090617
2 Importing IV_COLOR_CODE Call by reference Type reference (TYPE) STRING 20090617

Method NORMALIZE_COLOR_CODE on class CL_THTMLB_COLOR_UTIL has no exception.

Method RGB_TO_HEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_HEX_RGB Value transfer Type reference (TYPE) STRING 20090304
2 Importing IV_BLUE Call by reference Type reference (TYPE) I 20090304
3 Importing IV_GREEN Call by reference Type reference (TYPE) I 20090304
4 Importing IV_RED Call by reference Type reference (TYPE) I 20090304

Method RGB_TO_HEX on class CL_THTMLB_COLOR_UTIL has no exception.

Method RGB_TO_HSL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_H Call by reference Type reference (TYPE) DEC 20090304
2 Exporting EV_L Call by reference Type reference (TYPE) DEC 20090304
3 Exporting EV_S Call by reference Type reference (TYPE) DEC 20090304
4 Importing IV_BLUE Call by reference Type reference (TYPE) I 20090304
5 Importing IV_GREEN Call by reference Type reference (TYPE) I 20090304
6 Importing IV_RED Call by reference Type reference (TYPE) I 20090304

Method RGB_TO_HSL on class CL_THTMLB_COLOR_UTIL has no exception.

Method SET_COLOR_PERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COLOR Call by reference Type reference (TYPE) STRING 20090304

Method SET_COLOR_PERS on class CL_THTMLB_COLOR_UTIL has no exception.

Method SET_HARMONICCOLOR_PERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_HARMONICCOLOR Call by reference Type reference (TYPE) STRING 20090317

Method SET_HARMONICCOLOR_PERS on class CL_THTMLB_COLOR_UTIL has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 701