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(CSSValueList list, Display display) static IntegergetPercent(CSSPrimitiveValue value) static int[]getPercents(Gradient grad) static RGBAstatic RGBAgetRGBA(CSSPrimitiveValue value) static RGBAstatic RGBAstatic RGBColorgetRGBColor(Color color) static RGBColorgetRGBColor(RGB color) static ColorgetSWTColor(CSSValue value, Display display) static ColorgetSWTColor(RGBColor rgbColor, 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
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
-