Class AnnotationComponentFactory


  • public class AnnotationComponentFactory
    extends Object
    AnnotationComponentFactory is responsible for building an annotation component for given Annotation object. Generally this factor is only used by the annotation handlers during the creation of new annotations. When a PageComponent is initialized a pages Annotation list is iterated over and this class is used to generate the annotations components.
    Since:
    5.0
    • Field Detail

      • logger

        protected static final Logger logger
    • Method Detail

      • buildAnnotationComponent

        public static AbstractAnnotationComponent buildAnnotationComponent​(Annotation annotation,
                                                                           DocumentViewController documentViewController,
                                                                           AbstractPageViewComponent pageViewComponent)
        Creates an annotation component for the given annotation object subtype.
        Parameters:
        annotation - annotation to encapsulate with a component instance
        documentViewController - document view controller
        pageViewComponent - parent pageViewComponent
        Returns:
        annotation component of the type specified by annotation subtype