com.itextpdf.tool.xml.css
Class WidthCalculator
java.lang.Object
com.itextpdf.tool.xml.css.WidthCalculator
public class WidthCalculator
- extends Object
- Author:
- Emiel Ackermann
Method Summary |
float |
getWidth(Tag tag,
List<String> roottags,
float pagewidth)
Tries to calculate a width from a tag and it's ancestors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WidthCalculator
public WidthCalculator()
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 useroottags
- the root tags,pagewidth
- the page width
- Returns:
- the width
Copyright © 2012. All Rights Reserved.