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
FieldsModifier and TypeFieldDescriptionstatic final StringConstant used to storeCSS2FontPropertiesinstance intoCSSElementContextcontext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CSS2FontPropertiescreateCSS2FontProperties(CSSValue value, String property) Create and returnCSS2FontPropertiesinstance fromvalue.static CSS2FontPropertiesgetCSS2FontProperties(CSSElementContext context) GetCSS2FontPropertiesfromCSSElementContextcontext.static voidsetCSS2FontProperties(CSS2FontProperties fontProperties, CSSElementContext context) static voidupdateCSSPropertyFont(CSS2FontProperties fontProperties, String property, CSSValue value) Update theproperty offontPropertiesinstance with thevalue.static voidupdateCSSPropertyFontComposite(CSS2FontProperties font, CSSValue value) UpdatefontPropertiesinstance with theCSSValuevalue. value can beCSSPrimitiveValueorCSSValueList.static voidupdateCSSPropertyFontFamily(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-family.static voidupdateCSSPropertyFontSize(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-size.static voidupdateCSSPropertyFontStyle(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-style.static voidupdateCSSPropertyFontWeight(CSS2FontProperties font, CSSValue value) Update CSS2FontProperties instance with font-weight.
-
Field Details
-
CSS2FONT_KEY
Constant used to storeCSS2FontPropertiesinstance intoCSSElementContextcontext.- See Also:
-
-
Constructor Details
-
CSS2FontPropertiesHelpers
public CSS2FontPropertiesHelpers()
-
-
Method Details
-
getCSS2FontProperties
GetCSS2FontPropertiesfromCSSElementContextcontext. -
setCSS2FontProperties
public static void setCSS2FontProperties(CSS2FontProperties fontProperties, CSSElementContext context) -
createCSS2FontProperties
Create and returnCSS2FontPropertiesinstance fromvalue. -
updateCSSPropertyFont
public static void updateCSSPropertyFont(CSS2FontProperties fontProperties, String property, CSSValue value) Update theproperty offontPropertiesinstance with thevalue. -
updateCSSPropertyFontComposite
UpdatefontPropertiesinstance with theCSSValuevalue. value can beCSSPrimitiveValueorCSSValueList. -
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.
-