| 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. |
|||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| 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.
| ||||||||||
| StampType | getStampType() | ||||||||||
| String | getSubtitle() | ||||||||||
| Integer |
getTextColor()
Returns text textColor if set,
null otherwise. | ||||||||||
| String | getTitle() | ||||||||||
| boolean |
isCustomStamp()
Returns
true for special custom stamp can be personalized by users. | ||||||||||
| void | writeToParcel(Parcel dest, int flags) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
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 #subtitlenull #titlenull #textColornull 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 text textColor if set, null otherwise.
Returns true for special custom stamp can be personalized by users.
true for special custom stamp can be personalized by users.