Class SignatureAppearanceRenderer

All Implemented Interfaces:
IPropertyContainer, IRenderer

public class SignatureAppearanceRenderer extends AbstractTextFieldRenderer
The AbstractTextFieldRenderer implementation for SigFields.
  • Constructor Details

  • Method Details

    • isLayoutBasedOnFlatRenderer

      protected boolean isLayoutBasedOnFlatRenderer()
      Determines, whether the layout is based in the renderer itself or flat renderer.
      Overrides:
      isLayoutBasedOnFlatRenderer in class AbstractFormFieldRenderer
      Returns:
      true if layout is based on flat renderer, false otherwise.
    • createFlatRenderer

      protected IRenderer createFlatRenderer()
      Creates the flat renderer instance.
      Specified by:
      createFlatRenderer in class AbstractFormFieldRenderer
      Returns:
      the renderer instance.
    • layout

      public LayoutResult layout (LayoutContext layoutContext)
      This method simulates positioning of the renderer, including all of its children, and returns the LayoutResult, representing the layout result, including occupied area, status, i.e. if there was enough place to fit the renderer subtree, etc. LayoutResult can be extended to return custom layout results for custom elements, e.g. TextRenderer uses TextLayoutResult as its result. This method can be called standalone to learn how much area the renderer subtree needs, or can be called before IRenderer.draw(DrawContext), to prepare the renderer to be flushed to the output stream.
      Specified by:
      layout in interface IRenderer
      Overrides:
      layout in class AbstractFormFieldRenderer
      Parameters:
      layoutContext - the description of layout area and any other additional information
      Returns:
      result of the layout process
    • adjustFieldLayout

      protected void adjustFieldLayout (LayoutContext layoutContext)
      Adjusts the field layout.
      Specified by:
      adjustFieldLayout in class AbstractFormFieldRenderer
      Parameters:
      layoutContext - layout context
    • getNextRenderer

      public IRenderer getNextRenderer()
      Gets a new instance of this class to be used as a next renderer, after this renderer is used, if IRenderer.layout(LayoutContext) is called more than once.
      Returns:
      new renderer instance
    • getDefaultValue

      public String getDefaultValue()
      Gets the default value of the form field.
      Overrides:
      getDefaultValue in class AbstractFormFieldRenderer
      Returns:
      the default value of the form field.
    • applyAcroField

      protected void applyAcroField (DrawContext drawContext)
      Applies the AcroField widget.
      Specified by:
      applyAcroField in class AbstractFormFieldRenderer
      Parameters:
      drawContext - the draw context