org.apache.batik.css.engine.value.css2
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:
[ [ || || ]?
[ / ]? ] |
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected static final Set values
FontShorthandManager
public FontShorthandManager()
getPropertyName
public String getPropertyName()
- Implements
ValueManager.getPropertyName()
.
- Specified by:
getPropertyName
in interface ShorthandManager
- Specified by:
getPropertyName
in class AbstractValueFactory
isAnimatableProperty
public boolean isAnimatableProperty()
- Implements
ShorthandManager.isAnimatableProperty()
.
- Specified by:
isAnimatableProperty
in interface ShorthandManager
isAdditiveProperty
public boolean isAdditiveProperty()
- Implements
ValueManager.isAdditiveProperty()
.
- Specified by:
isAdditiveProperty
in interface ShorthandManager
handleSystemFont
public void handleSystemFont(CSSEngine eng,
ShorthandManager.PropertyHandler ph,
String s,
boolean imp)
setValues
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
- 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.
Copyright © 2008 Apache Software Foundation. All Rights Reserved.