|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.tool.xml.css.apply.MaxLeadingAndSize
public final class MaxLeadingAndSize
Serves as a container class for the largest font size and/or largest leading found in a tag and all its siblings.
Constructor Summary | |
---|---|
MaxLeadingAndSize()
|
Method Summary | |
---|---|
Float |
calculateLeading(Tag t)
Calculates the leading of the given tag. |
float |
getLargestFont()
|
float |
getLargestFontFromChildren(List<Tag> children)
Iterates over all children in a List and returns the largest font size found. |
float |
getLargestLeading()
|
void |
setLeading(Tag tag)
Set the largest leading based on calculateLeading only. |
void |
setVariablesBasedOnChildren(Tag t)
Sets largest font size and largest leading based on the css styles "font-size" and "line-height" of a given tag and its children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxLeadingAndSize()
Method Detail |
---|
public float getLargestLeading()
public float getLargestFont()
public void setVariablesBasedOnChildren(Tag t)
t
- tag of which the variables need to be set.public void setLeading(Tag tag)
tag
- the tagpublic float getLargestFontFromChildren(List<Tag> children)
children
- Listpublic Float calculateLeading(Tag t)
t
- tag of which the leading has to be calculated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |