Class TargetCounterHandler

java.lang.Object
com.itextpdf.layout.renderer.TargetCounterHandler

public class TargetCounterHandler extends Object
Handler to handle target-counter logic.
  • Constructor Details

  • Method Details

    • addPageByID

      public static void addPageByID (IRenderer renderer)
      Adds renderer's page to the root renderer map.
      Parameters:
      renderer - renderer from which page and root renderer will be taken.
    • getPageByID

      public static Integer getPageByID (IRenderer renderer, String id)
      Gets page from renderer using given id.
      Parameters:
      renderer - renderer from which root renderer will be taken
      id - key to the renderersPages Map
      Returns:
      page on which renderer was layouted
    • isValueDefinedForThisId

      public static boolean isValueDefinedForThisId (IRenderer renderer, String id)
      Indicates if page value was defined for this id.
      Parameters:
      renderer - renderer from which root renderer will be taken
      id - target id
      Returns:
      true if value is defined for this id, false otherwise
    • isRelayoutRequired

      public boolean isRelayoutRequired()
      Indicates if relayout is required.
      Returns:
      true if relayout is required, false otherwise
    • prepareHandlerToRelayout

      public void prepareHandlerToRelayout()
      Prepares handler to relayout.