Class ListStyleTypeCssApplier

java.lang.Object
com.itextpdf.tool.xml.css.apply.ListStyleTypeCssApplier
All Implemented Interfaces:
CssApplier<List>

public class ListStyleTypeCssApplier extends Object implements CssApplier<List>
  • Field Details

    • utils

      private final CssUtils utils
    • LOG

      private static final Logger LOG
  • Constructor Details

    • ListStyleTypeCssApplier

      public ListStyleTypeCssApplier()
  • Method Details

    • apply

      public List apply(List list, Tag t, HtmlPipelineContext context)
      The ListCssApplier has the capabilities to change the type of the given List 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 style
      t - the tag
      context - 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 interface CssApplier<List>
      Parameters:
      list - the element
      t - the tag
      memory - the MarginMemory
      psc - the PageSizeContainable
      context - the HtmlPipelineContext
      Returns:
      a styled
      invalid reference
      Paragraph
    • synchronizeSymbol

      private void synchronizeSymbol(float fontSize, List lst, BaseColor color)
    • shrinkSymbol

      private void shrinkSymbol(List lst, float fontSize, BaseColor color)
    • apply

      public Element apply(List e, Tag t)
      Utility method applying style to a list when no ImageProvider is available.
      Parameters:
      e - the list
      t - the tag
      Returns:
      styled element
      See Also: