java.lang.Object | ||
↳ | AppCompatImageView | |
↳ | com.pdftron.pdf.utils.AnnotationPropertyPreviewView |
An image view for showing annotation preview based on annotation style
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnnotationPropertyPreviewView(Context context) | |||||||||||
AnnotationPropertyPreviewView(Context context, AttributeSet attrs) | |||||||||||
AnnotationPropertyPreviewView(Context context, AttributeSet attrs, int defStyle) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setAnnotType(int annotType)
Sets annotation type
| ||||||||||
void | setBorderStyle(ShapeBorderStyle borderStyle) | ||||||||||
void |
setDrawInnerOuterStroke(boolean drawStroke)
Sets whether draw inner and outer stroke color if border color
or fill color is the same as parent background color
| ||||||||||
void |
setDrawTransparentBackground(boolean draw)
Sets whether to draw transparent background
| ||||||||||
void |
setFontPath(String fontPath)
Sets font path to preview
| ||||||||||
void |
setInnerOuterStrokeColor(int color)
Sets inner and outer stroke color if border color
or fill color is the same as parent background color
| ||||||||||
void | setLineEndStyle(LineEndingStyle lineEndStyle) | ||||||||||
void | setLineStartStyle(LineEndingStyle lineStartStyle) | ||||||||||
void | setLineStyle(LineStyle lineStyle) | ||||||||||
void |
setParentBackgroundColor(int color)
Sets parent view background color.
| ||||||||||
void |
setPreviewText(String text)
Sets the preview text for freetext annotation and text markup annotation
| ||||||||||
void |
setShowPressurePreview(boolean showPressurePreview)
Sets whether to show pressure sensitive thickness preview for signatures.
| ||||||||||
void |
setUseStrokeRatio(boolean useStrokeRatio)
Sets whether to use stroke ratio for drawing preview
| ||||||||||
void |
updateFillPreview(int stroke, int fill, double thickness, double opacity)
Updates preview based on give style
| ||||||||||
void |
updateFillPreview(AnnotStyle annotStyle)
Updates preview based on annotation style
| ||||||||||
void |
updateFreeTextStyle(int textColor, float textSizeRatio)
update free text color and size
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Sets annotation type
annotType | The annotation type |
---|
Sets whether draw inner and outer stroke color if border color or fill color is the same as parent background color
drawStroke | true then draw inner and outer stroke |
---|
Sets whether to draw transparent background
Sets font path to preview
fontPath | The font path |
---|
Sets inner and outer stroke color if border color or fill color is the same as parent background color
color | stroke color |
---|
Sets parent view background color. If parent view background color matches annotation color, it will draw a border around annotation in case the preview looks invisible
color | The parent view background color. |
---|
Sets the preview text for freetext annotation and text markup annotation
text | preview text |
---|
Sets whether to show pressure sensitive thickness preview for signatures.
showPressurePreview | true to show pressure sensitive thickness preview, false otherwise |
---|
Sets whether to use stroke ratio for drawing preview
useStrokeRatio | true then use stroke ratio, false otherwise |
---|
Updates preview based on give style
stroke | The stroke color |
---|---|
fill | The fill color of |
thickness | The thickness |
opacity | The opacity |
Updates preview based on annotation style
annotStyle | The annotation style |
---|
update free text color and size
textColor | text color |
---|---|
textSizeRatio | text size ratio, [0..1] |