Class LengthManager

All Implemented Interfaces:
ValueManager
Direct Known Subclasses:
BaselineShiftManager, EnableBackgroundManager, FontSizeManager, KerningManager, LineHeightManager, MarginLengthManager, RectManager, SpacingManager, StrokeDasharrayManager, StrokeDashoffsetManager, StrokeWidthManager

public abstract class LengthManager extends AbstractValueManager
This class provides a manager for the property with support for length values.

Original author: Stephane Hillion. For later modifications, see Git history.

  • Field Details

    • DEFAULT_LINE_HEIGHT

      public static final float DEFAULT_LINE_HEIGHT
      The 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_ORIENTATION

      protected static final int HORIZONTAL_ORIENTATION
      See Also:
    • VERTICAL_ORIENTATION

      protected static final int VERTICAL_ORIENTATION
      See Also:
    • BOTH_ORIENTATION

      protected static final int BOTH_ORIENTATION
      See Also:
  • Constructor Details

    • LengthManager

      public LengthManager()
  • Method Details