org.icepdf.ri.common.views.annotations
Class AnnotationComponentFactory

java.lang.Object
  extended by org.icepdf.ri.common.views.annotations.AnnotationComponentFactory

public class AnnotationComponentFactory
extends java.lang.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 Summary
protected static java.util.logging.Logger logger
           
 
Method Summary
static AbstractAnnotationComponent buildAnnotationComponent(org.icepdf.core.pobjects.annotations.Annotation annotation, DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent, DocumentViewModel documentViewModel)
          Creates an annotation component for the given annotation object subtype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final java.util.logging.Logger logger
Method Detail

buildAnnotationComponent

public static AbstractAnnotationComponent buildAnnotationComponent(org.icepdf.core.pobjects.annotations.Annotation annotation,
                                                                   DocumentViewController documentViewController,
                                                                   AbstractPageViewComponent pageViewComponent,
                                                                   DocumentViewModel documentViewModel)
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
documentViewModel - document view model.
Returns:
annotation component of the type specified by annotation subtype