| com.pspdfkit.annotations.defaults.AnnotationDefaultsManager |
Interface for objects that manage a list of AnnotationDefaultsProvider for supported annotation types.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract AnnotationDefaultsProvider |
getAnnotationDefaultsProvider(AnnotationTool annotationTool)
Retrieve annotation defaults provider for given annotation tool.
| ||||||||||
| abstract <T extends AnnotationDefaultsProvider> T |
getAnnotationDefaultsProvider(AnnotationType annotationType, Class<T> requiredClass)
Retrieve annotation defaults provider for given annotation type casted to required provider type.
| ||||||||||
| abstract AnnotationDefaultsProvider |
getAnnotationDefaultsProvider(AnnotationType annotationType)
Retrieve annotation defaults provider for given annotation type.
| ||||||||||
| abstract <T extends AnnotationDefaultsProvider> T |
getAnnotationDefaultsProvider(AnnotationTool annotationTool, Class<T> requiredClass)
Retrieve annotation defaults provider for given annotation tool casted to required provider type.
| ||||||||||
| abstract void |
setAnnotationDefaultsProvider(AnnotationType annotationType, AnnotationDefaultsProvider provider)
Registers annotation defaults provider for given annotation type.
| ||||||||||
| abstract void |
setAnnotationDefaultsProvider(AnnotationTool annotationTool, AnnotationDefaultsProvider provider)
Registers annotation defaults provider for given annotation tool.
| ||||||||||
| abstract boolean |
supportsAnnotationProperty(AnnotationTool annotationTool, AnnotationProperty property)
Tests if annotation tool supports editing given property.
| ||||||||||
| abstract boolean |
supportsAnnotationProperty(AnnotationType annotationType, AnnotationProperty property)
Tests if annotation type supports editing given property.
| ||||||||||
Retrieve annotation defaults provider for given annotation tool.
If no annotation provider is set for annotation tool, annotation provider for
underlying annotation type (toAnnotationType() is returned.
| annotationTool | Annotation tool for which to retrieve defaults provider. |
|---|
Retrieve annotation defaults provider for given annotation type casted to required provider type.
| annotationType | Type of annotation for which to retrieve defaults provider. |
|---|---|
| requiredClass | Required type of annotation defaults provider. |
requiredClass or null if provider does not exist or has other type than T.
Retrieve annotation defaults provider for given annotation type.
| annotationType | Type of annotation for which to retrieve defaults provider. |
|---|
Retrieve annotation defaults provider for given annotation tool casted to required provider type.
If no annotation provider is set for annotation tool, annotation provider for
underlying annotation type (toAnnotationType() is returned.
| annotationTool | Annotation tool for which to retrieve defaults provider. |
|---|---|
| requiredClass | Required type of annotation defaults provider. |
requiredClass or null if provider does not exist or has other type than T.
Registers annotation defaults provider for given annotation type. This replaces default provider.
| annotationType | Type of annotation for which to register defaults provider. |
|---|---|
| provider | Provider to register. |
Registers annotation defaults provider for given annotation tool. This replaces default provider.
| annotationTool | Annotation tool for which to register defaults provider. |
|---|---|
| provider | Provider to register. |
Tests if annotation tool supports editing given property.
Tests if annotation type supports editing given property.