| java.lang.Object | |
| ↳ | com.pspdfkit.annotations.defaults.MarkupAnnotationDefaultsProvider |
Defaults provider for markup annotations.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MarkupAnnotationDefaultsProvider(Context context, AnnotationType annotationType) | |||||||||||
| MarkupAnnotationDefaultsProvider(Context context, AnnotationTool annotationTool) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
forceDefaults()
Enforce provided annotation defaults. | ||||||||||
| int[] |
getAvailableColors()
Provides colors available in the color picker.
| ||||||||||
| float |
getDefaultAlpha()
Provides default annotation alpha.
| ||||||||||
| int |
getDefaultColor()
Provides default annotation foreground color.
| ||||||||||
| float |
getMaxAlpha()
Provides maximal annotation alpha.
| ||||||||||
| float |
getMinAlpha()
Provides minimal annotation alpha.
| ||||||||||
| EnumSet<AnnotationProperty> |
getSupportedProperties()
Control which annotation properties are enabled for this annotation type.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pspdfkit.annotations.defaults.AnnotationDefaultsAlphaProvider
| |||||||||||
From interface
com.pspdfkit.annotations.defaults.AnnotationDefaultsColorProvider
| |||||||||||
From interface
com.pspdfkit.annotations.defaults.AnnotationDefaultsProvider
| |||||||||||
Enforce provided annotation defaults. By default last picked values are used when creating annotations.
Values from AnnotationDefaultsProvider are used only when last used value is not available.
For example getDefaultColor() is used only when creating annotation
of given type for the first time, all annotation created after that are created with last used color.
true to always use annotation defaults even when property is set in AnnotationPreferencesManager.
Provides colors available in the color picker.
Provides default annotation alpha.
Provides default annotation foreground color.
Provides maximal annotation alpha.
Provides minimal annotation alpha.
Control which annotation properties are enabled for this annotation type. This is used to customize annotation
inspector contents. Property can be editable in annotation inspector when its returned by this method and
annotation defaults provider implements required interface. For example to enable editing annotation color
property, this method must return COLOR and annotation defaults provider must
implement AnnotationDefaultsColorProvider.