Package org.eclipse.e4.ui.css.core.css2
Class CSS2FontPropertiesHelpers
java.lang.Object
org.eclipse.e4.ui.css.core.css2.CSS2FontPropertiesHelpers
- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant used to storeCSS2FontProperties
instance intoCSSElementContext
context. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CSS2FontProperties
createCSS2FontProperties
(CSSValue value, String property) Create and returnCSS2FontProperties
instance fromvalue
.static CSS2FontProperties
getCSS2FontProperties
(CSSElementContext context) GetCSS2FontProperties
fromCSSElementContext
context.static void
setCSS2FontProperties
(CSS2FontProperties fontProperties, CSSElementContext context) static void
updateCSSPropertyFont
(CSS2FontProperties fontProperties, String property, CSSValue value) Update theproperty of
fontProperties
instance with thevalue
.static void
updateCSSPropertyFontComposite
(CSS2FontProperties font, CSSValue value) UpdatefontProperties
instance with theCSSValue
value
. value can beCSSPrimitiveValue
orCSSValueList
.static void
updateCSSPropertyFontFamily
(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-family.static void
updateCSSPropertyFontSize
(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-size.static void
updateCSSPropertyFontStyle
(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-style.static void
updateCSSPropertyFontWeight
(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-weight.
-
Field Details
-
CSS2FONT_KEY
Constant used to storeCSS2FontProperties
instance intoCSSElementContext
context.- See Also:
-
-
Constructor Details
-
CSS2FontPropertiesHelpers
public CSS2FontPropertiesHelpers()
-
-
Method Details
-
getCSS2FontProperties
GetCSS2FontProperties
fromCSSElementContext
context. -
setCSS2FontProperties
public static void setCSS2FontProperties(CSS2FontProperties fontProperties, CSSElementContext context) -
createCSS2FontProperties
Create and returnCSS2FontProperties
instance fromvalue
. -
updateCSSPropertyFont
public static void updateCSSPropertyFont(CSS2FontProperties fontProperties, String property, CSSValue value) Update theproperty of
fontProperties
instance with thevalue
. -
updateCSSPropertyFontComposite
UpdatefontProperties
instance with theCSSValue
value
. value can beCSSPrimitiveValue
orCSSValueList
. -
updateCSSPropertyFontFamily
Update CSS2FontProperties instance with font-family. -
updateCSSPropertyFontSize
Update CSS2FontProperties instance with font-size. -
updateCSSPropertyFontStyle
Update CSS2FontProperties instance with font-style. -
updateCSSPropertyFontWeight
Update CSS2FontProperties instance with font-weight.
-