Class CssContext
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext
com.itextpdf.html2pdf.css.resolve.CssContext
public class CssContext extends com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext
Class that bundles all the CSS context properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the counter manager.float
Gets the root font size.boolean
Checks if a non-page(s) target-counter(s) is present.boolean
Checks if a pages counter or page(s) target-counter is present.void
setNonPagesTargetCounterPresent
(boolean nonPagesTargetCounterPresent) Sets the presence of a non-page(s) target-counter(s).void
setPagesCounterPresent
(boolean pagesCounterOrTargetCounterPresent) Sets the presence of a pages counter or page(s) target counter.void
setRootFontSize
(float fontSize) Sets the root font size.void
setRootFontSize
(String fontSizeStr) Sets the root font size.Methods inherited from class com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext
getQuotesDepth, setQuotesDepth
-
Constructor Details
-
CssContext
public CssContext()
-
-
Method Details
-
getRootFontSize
public float getRootFontSize()Gets the root font size.- Returns:
- the root font size in pt
-
setRootFontSize
public void setRootFontSize(float fontSize) Sets the root font size.- Parameters:
-
fontSize
- the new root font size
-
setRootFontSize
Sets the root font size.- Parameters:
-
fontSizeStr
- the new root font size
-
getCounterManager
Gets the counter manager.- Returns:
- the counter manager
-
setPagesCounterPresent
public void setPagesCounterPresent(boolean pagesCounterOrTargetCounterPresent) Sets the presence of a pages counter or page(s) target counter.- Parameters:
-
pagesCounterOrTargetCounterPresent
- the new pages counter or page(s) target-counter present
-
isPagesCounterPresent
public boolean isPagesCounterPresent()Checks if a pages counter or page(s) target-counter is present.- Returns:
- true, if pages counter or page(s) target-counter present
-
setNonPagesTargetCounterPresent
public void setNonPagesTargetCounterPresent(boolean nonPagesTargetCounterPresent) Sets the presence of a non-page(s) target-counter(s).- Parameters:
-
nonPagesTargetCounterPresent
- the new non-page(s) target-counter(s) present
-
isNonPagesTargetCounterPresent
public boolean isNonPagesTargetCounterPresent()Checks if a non-page(s) target-counter(s) is present.- Returns:
- true, if non-page(s) target-counter(s) present
-
getRunningManager
-