java.lang.Object
io.sf.carte.echosvg.css.engine.value.AbstractValueFactory
io.sf.carte.echosvg.css.engine.value.AbstractValueManager
io.sf.carte.echosvg.css.engine.value.LengthManager
- All Implemented Interfaces:
- ValueManager
- Direct Known Subclasses:
- BaselineShiftManager,- EnableBackgroundManager,- FontSizeManager,- KerningManager,- LineHeightManager,- MarginLengthManager,- RectManager,- SpacingManager,- StrokeDasharrayManager,- StrokeDashoffsetManager,- StrokeWidthManager
This class provides a manager for the property with support for length
 values.
 
Original author: Stephane Hillion. For later modifications, see Git history.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intstatic final floatThe default line height.protected static final intprotected static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncomputeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) createValue(LexicalUnit lu, CSSEngine engine) ImplementsValueManager.createValue(LexicalUnit,CSSEngine).protected abstract intIndicates the orientation of the property associated with this manager.protected floatlineHeightValue(CSSStylableElement elt, String pseudo, CSSEngine engine, Value v) Methods inherited from class io.sf.carte.echosvg.css.engine.value.AbstractValueManagercreateCalc, createDOMException, createLexicalValue, createMathFunction, createURIValue, evaluateMath, lengthValueMethods inherited from class io.sf.carte.echosvg.css.engine.value.AbstractValueFactorycreateDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, getPropertyName, resolveURIMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sf.carte.echosvg.css.engine.value.ValueManagergetDefaultValue, getPropertyName, getPropertyType, isAdditiveProperty, isAnimatableProperty, isInheritedProperty
- 
Field Details- 
DEFAULT_LINE_HEIGHTpublic static final float DEFAULT_LINE_HEIGHTThe default line height.In SVG 1.1 the line height is defined to be 1, and Batik uses that value in the SVG 1.1 implementation, but it uses 1.1 as the default value for the SVG 1.2 implementation. For accessibility reasons this projects adopts the latter, which implies that images rendered with the SVG 1.1 implementation of Batik may show a different line-height with respect to EchoSVG. In SVG2 line-height is defined as in CSS2, but "It is not applicable to text on a path". Web browsers use a default based on the font family, close to 1.2 - See Also:
 
- 
HORIZONTAL_ORIENTATIONprotected static final int HORIZONTAL_ORIENTATION- See Also:
 
- 
VERTICAL_ORIENTATIONprotected static final int VERTICAL_ORIENTATION- See Also:
 
- 
BOTH_ORIENTATIONprotected static final int BOTH_ORIENTATION- See Also:
 
 
- 
- 
Constructor Details- 
LengthManagerpublic LengthManager()
 
- 
- 
Method Details- 
createValueImplementsValueManager.createValue(LexicalUnit,CSSEngine).- Parameters:
- lu- The SAC lexical unit used to create the value.
- engine- The calling CSSEngine.
- Throws:
- DOMException
 
- 
computeValuepublic Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) - Specified by:
- computeValuein interface- ValueManager
- Overrides:
- computeValuein class- AbstractValueManager
- Parameters:
- elt- The owner of the value.
- pseudo- The pseudo element.
- engine- The CSSEngine.
- idx- The property index in the engine.
- sm- The computed style map.
- value- The value to compute.
 
- 
lineHeightValueprotected float lineHeightValue(CSSStylableElement elt, String pseudo, CSSEngine engine, Value v) throws DOMException - Throws:
- DOMException
 
- 
getOrientationprotected abstract int getOrientation()Indicates the orientation of the property associated with this manager.
 
-