Package com.itextpdf.tool.xml.css.apply
Class ListStyleTypeCssApplier
java.lang.Object
com.itextpdf.tool.xml.css.apply.ListStyleTypeCssApplier
- All Implemented Interfaces:
CssApplier<List>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUtility method applying style to a list when no ImageProvider is available.apply
(List list, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context) Styles an elementapply
(List list, Tag t, HtmlPipelineContext context) The ListCssApplier has the capabilities to change the type of the givenList
dependable on the css.private void
shrinkSymbol
(List lst, float fontSize, BaseColor color) private void
synchronizeSymbol
(float fontSize, List lst, BaseColor color)
-
Field Details
-
utils
-
LOG
-
-
Constructor Details
-
ListStyleTypeCssApplier
public ListStyleTypeCssApplier()
-
-
Method Details
-
apply
The ListCssApplier has the capabilities to change the type of the givenList
dependable on the css. This means: Always replace your list with the returned one and add content to the list after applying!
note: not implemented list-style-type:armenian, georgian, decimal-leading-zero.- Parameters:
list
- the list to stylet
- the tagcontext
- the context- Returns:
- the changed
List
-
apply
public List apply(List list, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context) Description copied from interface:CssApplier
Styles an element- Specified by:
apply
in interfaceCssApplier<List>
- Parameters:
list
- the elementt
- the tagmemory
- the MarginMemorypsc
- the PageSizeContainablecontext
- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
synchronizeSymbol
-
shrinkSymbol
-
apply
Utility method applying style to a list when no ImageProvider is available.- Parameters:
e
- the listt
- the tag- Returns:
- styled element
- See Also:
-