Class CSSSWTColorHelper
java.lang.Object
org.eclipse.e4.ui.css.swt.helpers.CSSSWTColorHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Gradient
getGradient
(CSSValueList list, Display display) static Integer
getPercent
(CSSPrimitiveValue value) static int[]
getPercents
(Gradient grad) static RGBA
static RGBA
getRGBA
(CSSPrimitiveValue value) static RGBA
static RGBA
static RGBColor
getRGBColor
(Color color) static RGBColor
getRGBColor
(RGB color) static Color
getSWTColor
(CSSValue value, Display display) static Color
getSWTColor
(RGBColor rgbColor, Display display) static Color[]
getSWTColors
(Gradient grad, Display display, CSSEngine engine) static boolean
static boolean
static void
setBackground
(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
setForeground
(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
setSelectionBackground
(CTabFolder folder, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
setSelectionForeground
(CTabFolder folder, Color newColor) Helper function to avoid setting colors unnecessarily
-
Field Details
-
COLOR_DEFINITION_MARKER
- See Also:
-
-
Constructor Details
-
CSSSWTColorHelper
public CSSSWTColorHelper()
-
-
Method Details
-
getSWTColor
-
getSWTColor
-
hasColorDefinitionAsValue
-
hasColorDefinitionAsValue
-
getRGBA
-
getRGBA
-
getRGBA
-
getRGBA
-
getPercent
-
getGradient
-
getSWTColors
public static Color[] getSWTColors(Gradient grad, Display display, CSSEngine engine) throws Exception - Throws:
Exception
-
getPercents
-
getRGBColor
-
getRGBColor
-
setForeground
Helper function to avoid setting colors unnecessarily -
setBackground
Helper function to avoid setting colors unnecessarily -
setSelectionForeground
Helper function to avoid setting colors unnecessarily -
setSelectionBackground
Helper function to avoid setting colors unnecessarily
-