Module org.icepdf.ri.viewer
Class AnnotationComponentFactory
- java.lang.Object
-
- org.icepdf.ri.common.views.annotations.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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractAnnotationComponentbuildAnnotationComponent(Annotation annotation, DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent)Creates an annotation component for the given annotation object subtype.
-
-
-
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 instancedocumentViewController- document view controllerpageViewComponent- parent pageViewComponent- Returns:
- annotation component of the type specified by annotation subtype
-
-