public class

LineAnnotationDefaultsProvider

extends ShapeAnnotationDefaultsProvider
implements AnnotationDefaultsLineEndTypeProvider
java.lang.Object
   ↳ com.pspdfkit.annotations.defaults.InkAnnotationDefaultsProvider
     ↳ com.pspdfkit.annotations.defaults.ShapeAnnotationDefaultsProvider
       ↳ com.pspdfkit.annotations.defaults.LineAnnotationDefaultsProvider

This class is deprecated.
Use LineAnnotationConfiguration.Builder instead.

Class Overview

Defaults provider for line/polyline annotations.

Summary

[Expand]
Inherited Fields
From class com.pspdfkit.annotations.defaults.InkAnnotationDefaultsProvider
Public Constructors
LineAnnotationDefaultsProvider(Context context)
LineAnnotationDefaultsProvider(Context context, AnnotationType annotationType)
LineAnnotationDefaultsProvider(Context context, AnnotationTool annotationTool)
Public Methods
List<LineEndType> getAvailableLineEndTypes()
Provides list of supported line end types.
Pair<LineEndTypeLineEndType> getDefaultLineEnds()
Provides default line end types.
EnumSet<AnnotationProperty> getSupportedProperties()
Control which annotation properties are enabled for this annotation type.
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.defaults.ShapeAnnotationDefaultsProvider
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.AnnotationDefaultsLineEndTypeProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsPreviewProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsProvider
From interface com.pspdfkit.annotations.defaults.AnnotationDefaultsThicknessProvider

Public Constructors

public LineAnnotationDefaultsProvider (Context context)

public LineAnnotationDefaultsProvider (Context context, AnnotationType annotationType)

public LineAnnotationDefaultsProvider (Context context, AnnotationTool annotationTool)

Public Methods

public List<LineEndType> getAvailableLineEndTypes ()

Provides list of supported line end types.

public Pair<LineEndTypeLineEndType> getDefaultLineEnds ()

Provides default line end types.

Returns
  • Pair of line end types 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.