Class FontShorthandManager

  extended by org.apache.batik.css.engine.value.AbstractValueFactory
      extended by org.apache.batik.css.engine.value.css2.FontShorthandManager
All Implemented Interfaces:

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.

Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.batik.css.engine.value.ShorthandManager
Field Summary
protected static Set values
Constructor Summary
Method Summary
 String getPropertyName()
          Implements ValueManager.getPropertyName().
 void handleSystemFont(CSSEngine eng, ShorthandManager.PropertyHandler ph, String s, boolean imp)
 boolean isAdditiveProperty()
          Implements ValueManager.isAdditiveProperty().
 boolean isAnimatableProperty()
          Implements ShorthandManager.isAnimatableProperty().
 void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, org.w3c.css.sac.LexicalUnit lu, boolean imp)
          Implements ShorthandManager.setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean).
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected static final Set values
Constructor Detail


public FontShorthandManager()
Method Detail


public String getPropertyName()
Implements ValueManager.getPropertyName().

Specified by:
getPropertyName in interface ShorthandManager
Specified by:
getPropertyName in class AbstractValueFactory


public boolean isAnimatableProperty()
Implements ShorthandManager.isAnimatableProperty().

Specified by:
isAnimatableProperty in interface ShorthandManager


public boolean isAdditiveProperty()
Implements ValueManager.isAdditiveProperty().

Specified by:
isAdditiveProperty in interface ShorthandManager


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


public void setValues(CSSEngine eng,
                      ShorthandManager.PropertyHandler ph,
                      org.w3c.css.sac.LexicalUnit lu,
                      boolean imp)
Implements ShorthandManager.setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean).

Specified by:
setValues in interface ShorthandManager
eng - The current CSSEngine.
ph - The property handler to use.
lu - The SAC lexical unit used to create the value.
imp - The property priority.

Copyright © 2008 Apache Software Foundation. All Rights Reserved.