java.lang.Object | |
↳ | com.pspdfkit.annotations.stamps.StampPickerItem |
Entity representing single stamp in StampPickerDialog.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | StampPickerItem.BitmapStampBuilder | Builder for creating custom stamps with bitmap image. | |||||||||
class | StampPickerItem.Builder | Builder for creating custom stamps from PredefinedStampType or custom String
stamp type. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
float | DEFAULT_STAMP_ANNOTATION_ASPECT_RATIO | Default stamp annotation aspect ration. | |||||||||
float | DEFAULT_STAMP_ANNOTATION_PDF_HEIGHT | Default stamp annotation height. | |||||||||
float | DEFAULT_STAMP_ANNOTATION_PDF_WIDTH | Default stamp annotation width. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator<StampPickerItem> | CREATOR | A field that generates the instances of this class from the provided Parcel . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
StampAnnotation |
createStampAnnotation(int pageIndex)
Creates stamp annotation from picker item data.
| ||||||||||
int | describeContents() | ||||||||||
static StampPickerItem.BitmapStampBuilder |
fromBitmap(Bitmap bitmap)
Creates builder for stamp annotation with bitmap image.
| ||||||||||
static StampPickerItem.Builder |
fromPredefinedType(Context context, PredefinedStampType predefinedStampType)
Creates builder for stamp annotations pre-filled with properties of
PredefinedStampType . | ||||||||||
static StampPickerItem.Builder |
fromStampType(Context context, StampType stampType)
Creates builder for stamp annotation using a custom stamp type.
| ||||||||||
static StampPickerItem.Builder |
fromTitle(Context context, String title)
Creates builder for stamp annotation using a title.
| ||||||||||
AppearanceStreamGenerator |
getAppearanceStreamGenerator()
Returns appearance stream generator that replaces default stamp appearance.
| ||||||||||
Bitmap |
getBitmap()
Returns bitmap if set,
null otherwise. | ||||||||||
float |
getDefaultPdfHeight()
Default height of this stamp type in pdf coordinates.
| ||||||||||
float |
getDefaultPdfWidth()
Default width of this stamp type in pdf coordinates.
| ||||||||||
static List<StampPickerItem> |
getDefaultStampPickerItems(Context context)
Returns default list of stamp picker items.
| ||||||||||
StampType |
getStampType()
Returns type of this stamp if it's one of the standard types listed in
StampType . | ||||||||||
String |
getSubtitle()
Returns text in second line of the stamp if any is available.
| ||||||||||
Integer |
getTextColor()
Returns text textColor if set,
null otherwise. | ||||||||||
String |
getTitle()
Returns text in first line of the stamp if any is available.
| ||||||||||
boolean |
isCustomStamp()
Returns
true for special custom stamp can be personalized by users. | ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default stamp annotation aspect ration.
Default stamp annotation height.
Default stamp annotation width.
A field that generates the instances of this class from the provided Parcel
.
Creates stamp annotation from picker item data.
pageIndex | Page to create stamp annotation on. |
---|
Creates builder for stamp annotation with bitmap image.
bitmap | Bitmap used for custom stamp annotation. |
---|
Creates builder for stamp annotations pre-filled with properties of PredefinedStampType
.
context | The context used to access resources. |
---|---|
predefinedStampType | Predefined stamp type used to initialize builder properties. |
Creates builder for stamp annotation using a custom stamp type.
context | The context used to access resources. |
---|---|
stampType | Stamp type to use for created stamp annotation. |
Creates builder for stamp annotation using a title.
context | The context used to access resources. |
---|---|
title | Text that is displayed on the stamp. |
Returns appearance stream generator that replaces default stamp appearance.
null
otherwise.
Returns bitmap if set, null
otherwise. Stamp picker items with bitmap are special
items with:
null
#subtitle
null
#title
null
#textColor
null
otherwise.
Default height of this stamp type in pdf coordinates. Also used to ensure correct stamp aspect ratio in StampPickerDialog.
Default width of this stamp type in pdf coordinates. Also used to ensure correct stamp aspect ratio in StampPickerDialog.
Returns default list of stamp picker items.
context | Context used in created StampPickerItem s. |
---|
Returns type of this stamp if it's one of the standard types listed in StampType
.
Returns null
if the stamp uses a non-standard title.
null
if the type isn't standard.Returns text in second line of the stamp if any is available.
null
if none is set.Returns text textColor if set, null
otherwise.
Returns text in first line of the stamp if any is available.
null
if none is set.Returns true
for special custom stamp can be personalized by users.
true
for special custom stamp can be personalized by users.