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 getPropertyName.
voidhandleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp)
booleanisAdditiveProperty()
Implements isAdditiveProperty.
booleanisAnimatableProperty()
voidsetValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp)
Implements ShorthandManager.

Field Detail

values

protected static final Set values

Constructor Detail

FontShorthandManager

public FontShorthandManager()

Method Detail

getPropertyName

public String getPropertyName()
Implements getPropertyName.

handleSystemFont

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

isAdditiveProperty

public boolean isAdditiveProperty()
Implements isAdditiveProperty.

isAnimatableProperty

public boolean isAnimatableProperty()
Implements isAnimatableProperty.

setValues

public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp)
Implements ShorthandManager.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.