org.apache.batik.css.engine.value.css2

Class FontShorthandManager

public class FontShorthandManager extends AbstractValueFactory implements ShorthandManager

This class provides support for the CSS2 'font' shorthand property. The form of this property is: [ [ || || ]? [ / ]? ] | 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.
Field Summary
protected static Setvalues
Constructor Summary
FontShorthandManager()
Method Summary
StringgetPropertyName()
Implements {@link ValueManager#getPropertyName()}.
voidhandleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp)
booleanisAdditiveProperty()
Implements {@link ValueManager#isAdditiveProperty()}.
booleanisAnimatableProperty()
Implements {@link ShorthandManager#isAnimatableProperty()}.
voidsetValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp)
Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}.

Field Detail

values

protected static final Set values

Constructor Detail

FontShorthandManager

public FontShorthandManager()

Method Detail

getPropertyName

public String getPropertyName()
Implements {@link ValueManager#getPropertyName()}.

handleSystemFont

public void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp)

isAdditiveProperty

public boolean isAdditiveProperty()
Implements {@link ValueManager#isAdditiveProperty()}.

isAnimatableProperty

public boolean isAnimatableProperty()
Implements {@link ShorthandManager#isAnimatableProperty()}.

setValues

public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp)
Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.