Class CSS2ColorHelper
java.lang.Object
org.eclipse.e4.ui.css.core.css2.CSS2ColorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetColorNameFromHexaColor(String hexaColor) Return the color name (ex : white) from Hexa color (ex : #FFFFFF).static StringgetColorStringValue(RGBColor rgbColor) Return the hex string representation of the given w3crgbColor.static StringgetHexaColorFromColorName(String colorName) Return the Hexa color (ex : #FFFFFF) from color name (ex : white).static StringgetHexaColorStringValue(RGBColor rgbColor) Return hexadecimal (ex : #FFFFFF) color string value from w3crgbColorinstance.static RGBColorgetRGBColor(String value) Return w3cRGBColorfrom string value.static StringgetRGBColorStringValue(RGBColor rgbColor) Return rgb (ex : rgb(0,0,0)) color string value from w3crgbColorinstance.static booleanisColorName(String value) Return true ifvalueis color name (ex : white) and false otherwise.
-
Constructor Details
-
CSS2ColorHelper
public CSS2ColorHelper()
-
-
Method Details
-
getRGBColor
-
getColorStringValue
-
getRGBColorStringValue
-
getHexaColorStringValue
-
getHexaColorFromColorName
-
isColorName
Return true ifvalueis color name (ex : white) and false otherwise.- Parameters:
value- name of color to check- Returns:
trueif name is a known named color
-
getColorNameFromHexaColor
-