Class WidthCalculator


  • public class WidthCalculator
    extends Object
    Author:
    Emiel Ackermann
    • Constructor Detail

      • WidthCalculator

        public WidthCalculator()
    • Method Detail

      • getWidth

        public float getWidth​(Tag tag,
                              List<String> roottags,
                              float pagewidth)
        Tries to calculate a width from a tag and it's ancestors.
        Parameters:
        tag - the tag to use
        roottags - the root tags,
        pagewidth - the page width
        Returns:
        the width
      • getWidth

        public float getWidth​(Tag tag,
                              List<String> roottags,
                              float pagewidth,
                              float initialTotalWidth)