Class CSSPropertyFontSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyFontSWTHandler
- All Implemented Interfaces:
ICSSPropertyFontHandler, ICSSPropertyCompositeHandler, ICSSPropertyHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).voidapplyCSSPropertyFontFamily(Object element, CSSValue value, String pseudo, CSSEngine engine) A prioritized list of font family names and/or generic family names for an element.voidapplyCSSPropertyFontSize(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the size of a font.voidapplyCSSPropertyFontStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the font.voidapplyCSSPropertyFontWeight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the weight of a font.voidonAllCSSPropertiesApplied(Object element, CSSEngine engine) Callback method called once after all CSS properties of a single declaration have been applied.retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) Retrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).retrieveCSSPropertyFontAdjust(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontFamily(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontSize(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontStretch(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontStyle(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontVariant(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontWeight(Object element, String pseudo, CSSEngine engine) Methods inherited from class AbstractCSSPropertyFontHandler
applyCSSPropertyFont, applyCSSPropertyFontFamily, applyCSSPropertyFontSize, applyCSSPropertyFontSizeAdjust, applyCSSPropertyFontStretch, applyCSSPropertyFontStyle, applyCSSPropertyFontVariant, applyCSSPropertyFontWeightMethods inherited from class AbstractCSSPropertyFontCompositeHandler
applyCSSProperty, getCSSPropertiesNames, isCSSPropertyCompositeMethods inherited from class AbstractCSSPropertyCompositeHandler
applyCSSPropertyCompositeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICSSPropertyHandler
onAllCSSPropertiesApplied
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CSSPropertyFontSWTHandler
public CSSPropertyFontSWTHandler()
-
-
Method Details
-
applyCSSProperty
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- Overrides:
applyCSSPropertyin classAbstractCSSPropertyFontHandler- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertyvalue- CSS valuepseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- weather CSS property was applied or not
- Throws:
Exception- if applying CSS failed
-
applyCSSPropertyFontFamily
public void applyCSSPropertyFontFamily(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandlerA prioritized list of font family names and/or generic family names for an element.- Specified by:
applyCSSPropertyFontFamilyin interfaceICSSPropertyFontHandler- Overrides:
applyCSSPropertyFontFamilyin classAbstractCSSPropertyFontHandler- Throws:
Exception
-
applyCSSPropertyFontSize
public void applyCSSPropertyFontSize(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandlerSets the size of a font.- Specified by:
applyCSSPropertyFontSizein interfaceICSSPropertyFontHandler- Overrides:
applyCSSPropertyFontSizein classAbstractCSSPropertyFontHandler- Throws:
Exception
-
applyCSSPropertyFontWeight
public void applyCSSPropertyFontWeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandlerSets the weight of a font.- Specified by:
applyCSSPropertyFontWeightin interfaceICSSPropertyFontHandler- Overrides:
applyCSSPropertyFontWeightin classAbstractCSSPropertyFontHandler- Throws:
Exception
-
applyCSSPropertyFontStyle
public void applyCSSPropertyFontStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandlerSets the style of the font.- Specified by:
applyCSSPropertyFontStylein interfaceICSSPropertyFontHandler- Overrides:
applyCSSPropertyFontStylein classAbstractCSSPropertyFontHandler- Throws:
Exception
-
retrieveCSSProperty
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerRetrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSPropertyin interfaceICSSPropertyHandler- Overrides:
retrieveCSSPropertyin classAbstractCSSPropertyFontHandler- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertypseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- retrieved CSS properties or
null - Throws:
Exception- if retrieving CSS failed
-
retrieveCSSPropertyFontAdjust
-
retrieveCSSPropertyFontFamily
-
retrieveCSSPropertyFontSize
-
retrieveCSSPropertyFontStretch
-
retrieveCSSPropertyFontStyle
-
retrieveCSSPropertyFontVariant
-
retrieveCSSPropertyFontWeight
-
onAllCSSPropertiesApplied
Description copied from interface:ICSSPropertyHandlerCallback method called once after all CSS properties of a single declaration have been applied. Handlers that need to perform a final step (re-layout, redraw, batched commit, ...) override this method; the default is a no-op.- Throws:
Exception
-