Package com.itextpdf.tool.xml.css.apply
Class ListStyleTypeCssApplier
- java.lang.Object
-
- com.itextpdf.tool.xml.css.apply.ListStyleTypeCssApplier
-
- All Implemented Interfaces:
CssApplier<List>
public class ListStyleTypeCssApplier extends java.lang.Object implements CssApplier<List>
-
-
Constructor Summary
Constructors Constructor Description ListStyleTypeCssApplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
apply(List e, Tag t)
Utility method applying style to a list when no ImageProvider is available.List
apply(List list, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context)
Styles an elementList
apply(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)
-
-
-
Method Detail
-
apply
public List apply(List list, Tag t, HtmlPipelineContext context)
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
-
apply
public Element apply(List e, Tag t)
Utility method applying style to a list when no ImageProvider is available.- Parameters:
e
- the listt
- the tag- Returns:
- styled element
- See Also:
apply(List, Tag, HtmlPipelineContext)
-
-