org.icepdf.ri.common.views.annotations
Class AnnotationComponentFactory
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final java.util.logging.Logger logger
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 instancedocumentViewController - document view controllerpageViewComponent - parent pageViewComponentdocumentViewModel - document view model.
- Returns:
- annotation component of the type specified by annotation subtype