Class ColorUtil
java.lang.Object
org.eclipse.ui.themes.ColorUtil
Useful color utilities.
- Since:
- 3.0 - initial release, 3.2 - public API
-
Method Summary
Modifier and TypeMethodDescriptionstatic RGBBlend the two color values returning a value that is halfway between them.static RGBBlends the two color values according to the provided ratio.static RGBgetColorValue(String rawValue) Get the RGB value for a given color.static RGB[]getColorValues(String[] rawValues) Get the RGB values for a given color array.
-
Method Details
-
blend
-
blend
-
getColorValue
Get the RGB value for a given color.- Parameters:
rawValue- the raw value, either an RGB triple or an SWT constant name- Returns:
- the RGB value
- Throws:
DataFormatException- thrown if the value cannot be interpreted as a color
-
getColorValues
-