Class FontShorthandManager
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValueFactory
-
- org.apache.batik.css.engine.value.css2.FontShorthandManager
-
- All Implemented Interfaces:
ShorthandManager
public class FontShorthandManager extends AbstractValueFactory implements ShorthandManager
This class provides support for the CSS2 'font' shorthand property. The form of this property is: [ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> ] | caption | icon | menu | message-box | small-caption | status-bar | inherit It is worth noting that there is a potential ambiguity between font-size and font-weight since in SVG they can both be unitless. This is solved by considering the 'last' number before an 'ident' or '/' to be font-size and any preceeding number to be font-weight.- Version:
- $Id: FontShorthandManager.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.batik.css.engine.value.ShorthandManager
ShorthandManager.PropertyHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.w3c.css.sac.LexicalUnit
BOLD_LU
(package private) static org.w3c.css.sac.LexicalUnit
FONT_FAMILY_LU
(package private) static org.w3c.css.sac.LexicalUnit
MEDIUM_LU
(package private) static org.w3c.css.sac.LexicalUnit
NORMAL_LU
(package private) static org.w3c.css.sac.LexicalUnit
SZ_10PT_LU
(package private) static org.w3c.css.sac.LexicalUnit
SZ_8PT_LU
protected static java.util.Set
values
-
Constructor Summary
Constructors Constructor Description FontShorthandManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPropertyName()
ImplementsValueManager.getPropertyName()
.void
handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, java.lang.String s, boolean imp)
boolean
isAdditiveProperty()
ImplementsValueManager.isAdditiveProperty()
.boolean
isAnimatableProperty()
ImplementsShorthandManager.isAnimatableProperty()
.void
setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, org.w3c.css.sac.LexicalUnit lu, boolean imp)
-
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
-
-
-
-
Field Detail
-
NORMAL_LU
static org.w3c.css.sac.LexicalUnit NORMAL_LU
-
BOLD_LU
static org.w3c.css.sac.LexicalUnit BOLD_LU
-
MEDIUM_LU
static org.w3c.css.sac.LexicalUnit MEDIUM_LU
-
SZ_10PT_LU
static org.w3c.css.sac.LexicalUnit SZ_10PT_LU
-
SZ_8PT_LU
static org.w3c.css.sac.LexicalUnit SZ_8PT_LU
-
FONT_FAMILY_LU
static org.w3c.css.sac.LexicalUnit FONT_FAMILY_LU
-
values
protected static final java.util.Set values
-
-
Method Detail
-
getPropertyName
public java.lang.String getPropertyName()
ImplementsValueManager.getPropertyName()
.- Specified by:
getPropertyName
in interfaceShorthandManager
- Specified by:
getPropertyName
in classAbstractValueFactory
-
isAnimatableProperty
public boolean isAnimatableProperty()
ImplementsShorthandManager.isAnimatableProperty()
.- Specified by:
isAnimatableProperty
in interfaceShorthandManager
-
isAdditiveProperty
public boolean isAdditiveProperty()
ImplementsValueManager.isAdditiveProperty()
.- Specified by:
isAdditiveProperty
in interfaceShorthandManager
-
handleSystemFont
public void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, java.lang.String s, boolean imp)
-
setValues
public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, org.w3c.css.sac.LexicalUnit lu, boolean imp)
ImplementsShorthandManager.setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)
.- Specified by:
setValues
in interfaceShorthandManager
- Parameters:
eng
- The current CSSEngine.ph
- The property handler to use.lu
- The SAC lexical unit used to create the value.imp
- The property priority.
-
-