Package com.itextpdf.tool.xml.css
Class WidthCalculator
- java.lang.Object
-
- com.itextpdf.tool.xml.css.WidthCalculator
-
public class WidthCalculator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WidthCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth)
Tries to calculate a width from a tag and it's ancestors.float
getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth, float initialTotalWidth)
-
-
-
Field Detail
-
utils
private final CssUtils utils
-
-
Method Detail
-
getWidth
public float getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth)
Tries to calculate a width from a tag and it's ancestors.- Parameters:
tag
- the tag to useroottags
- the root tags,pagewidth
- the page width- Returns:
- the width
-
getWidth
public float getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth, float initialTotalWidth)
-
-