public class

ShapeAnnotationDefaultsProvider

extends InkAnnotationDefaultsProvider
implements AnnotationDefaultsBorderStyleProvider AnnotationDefaultsFillColorProvider
java.lang.Object
   ↳ com.pspdfkit.annotations.defaults.InkAnnotationDefaultsProvider
     ↳ com.pspdfkit.annotations.defaults.ShapeAnnotationDefaultsProvider
Known Direct Subclasses

Class Overview

Provides defaults for shape annotations.

Summary

[Expand]
Inherited Fields
From class com.pspdfkit.annotations.defaults.InkAnnotationDefaultsProvider
Public Constructors
ShapeAnnotationDefaultsProvider(Context context, AnnotationType annotationType)
ShapeAnnotationDefaultsProvider(Context context, AnnotationTool annotationTool)
Public Methods
int[] getAvailableFillColors()
Provides fill colors available in the color picker.
List<BorderStylePreset> getBorderStylePresets()
Provides list of supported border style presets.
BorderStylePreset getDefaultBorderStylePreset()
Provides default border style preset.
int getDefaultFillColor()
Provides default fill color.
EnumSet<AnnotationProperty> getSupportedProperties()
Control which annotation properties are enabled for this annotation type.
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.defaults.InkAnnotationDefaultsProvider
From class java.lang.Object
From interface com.pspdfkit.annotations.defaults.AnnotationAggregationStrategyDefaultsProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsAlphaProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsBorderStyleProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsColorProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsFillColorProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsPreviewProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsThicknessProvider

Public Constructors

public ShapeAnnotationDefaultsProvider (Context context, AnnotationType annotationType)

public ShapeAnnotationDefaultsProvider (Context context, AnnotationTool annotationTool)

Public Methods

public int[] getAvailableFillColors ()

Provides fill colors available in the color picker.

public List<BorderStylePreset> getBorderStylePresets ()

Provides list of supported border style presets.

public BorderStylePreset getDefaultBorderStylePreset ()

Provides default border style preset.

Returns
  • Border style preset used as default for editing annotations.

public int getDefaultFillColor ()

Provides default fill color.

Returns
  • Fill color used as default for editing annotations.

public EnumSet<AnnotationProperty> getSupportedProperties ()

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.

Returns
  • Enum set of all supported annotation properties.