com.itextpdf.tool.xml.css
Class WidthCalculator

java.lang.Object
  extended by com.itextpdf.tool.xml.css.WidthCalculator

public class WidthCalculator
extends Object

Author:
Emiel Ackermann

Constructor Summary
WidthCalculator()
           
 
Method Summary
 float getWidth(Tag tag, List<String> roottags, float pagewidth)
          Tries to calculate a width from a tag and it's ancestors.
 float getWidth(Tag tag, List<String> roottags, float pagewidth, float initialTotalWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)


Copyright © 2015. All Rights Reserved.