Class CSSSWTColorHelper
java.lang.Object
org.eclipse.e4.ui.css.swt.helpers.CSSSWTColorHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GradientgetGradient(CssValues.CssList list, Display display) static IntegergetPercent(CssValues.CssPrimitive value) static int[]getPercents(Gradient grad) static RGBAstatic RGBAgetRGBA(CssValues.CssColor color) static RGBAgetRGBA(CssValues.CssPrimitive value) static RGBAstatic CssValues.CssColorgetRGBColor(Color color) static CssValues.CssColorgetRGBColor(RGB color) static ColorgetSWTColor(CssValues.CssColor rgbColor) static ColorgetSWTColor(CSSValue value, Display display) static Color[]getSWTColors(Gradient grad, Display display, CSSEngine engine) static booleanstatic booleanstatic voidsetBackground(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic voidsetForeground(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic voidsetSelectionBackground(CTabFolder folder, Color newColor) Helper function to avoid setting colors unnecessarilystatic voidsetSelectionForeground(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
-
getPercents
-
getRGBColor
-
getRGBColor
-
setForeground
-
setBackground
-
setSelectionForeground
Helper function to avoid setting colors unnecessarily -
setSelectionBackground
Helper function to avoid setting colors unnecessarily
-