public class

StandardStampPreviewAppearance

extends Object
implements Parcelable
java.lang.Object
   ↳ com.pdftron.pdf.model.StandardStampPreviewAppearance

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<StandardStampPreviewAppearance> CREATOR
public boolean pointLeft
public boolean pointRight
public CustomStampPreviewAppearance previewAppearance
public final String stampLabel
public String text
Public Constructors
StandardStampPreviewAppearance(String stampLabel)
Class constructor when should look for a stamp in "stamps_icon.pdf"
StandardStampPreviewAppearance(String stampLabel, CustomStampPreviewAppearance previewAppearance)
Class constructor when the stamp should be created using given info
StandardStampPreviewAppearance(String stampLabel, int stringRes, CustomStampPreviewAppearance previewAppearance)
Class constructor when the stamp should be created using given info
StandardStampPreviewAppearance(String stampLabel, CustomStampPreviewAppearance previewAppearance, boolean pointLeft, boolean pointRight)
Class constructor when the stamp should be created using given info
StandardStampPreviewAppearance(String stampLabel, int textResource, CustomStampPreviewAppearance previewAppearance, boolean pointLeft, boolean pointRight)
Class constructor when the stamp should be created using given info
Public Methods
int describeContents()
static StandardStampPreviewAppearance[] getStandardStampAppearancesFromBundle(Bundle bundle)
Gets an array of standard rubber stamp appearances from bundle
String getText(Context context)
static void putStandardStampAppearancesToBundle(Bundle bundle, StandardStampPreviewAppearance[] standardStampPreviewAppearances)
Puts an array of standard rubber stamp appearances into a bundle.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<StandardStampPreviewAppearance> CREATOR

public boolean pointLeft

public boolean pointRight

public CustomStampPreviewAppearance previewAppearance

public final String stampLabel

public String text

Public Constructors

public StandardStampPreviewAppearance (String stampLabel)

Class constructor when should look for a stamp in "stamps_icon.pdf"

Parameters
stampLabel The label of stamp

public StandardStampPreviewAppearance (String stampLabel, CustomStampPreviewAppearance previewAppearance)

Class constructor when the stamp should be created using given info

Parameters
stampLabel The label of stamp and text to show
previewAppearance The appearance option for creating stamp

public StandardStampPreviewAppearance (String stampLabel, int stringRes, CustomStampPreviewAppearance previewAppearance)

Class constructor when the stamp should be created using given info

Parameters
stampLabel The label of stamp and text to show
stringRes the text to show
previewAppearance The appearance option for creating stamp

public StandardStampPreviewAppearance (String stampLabel, CustomStampPreviewAppearance previewAppearance, boolean pointLeft, boolean pointRight)

Class constructor when the stamp should be created using given info

Parameters
stampLabel The label of stamp and text to show
previewAppearance The appearance option for creating stamp
pointLeft True if point to left
pointRight True if point to right

public StandardStampPreviewAppearance (String stampLabel, int textResource, CustomStampPreviewAppearance previewAppearance, boolean pointLeft, boolean pointRight)

Class constructor when the stamp should be created using given info

Parameters
stampLabel The label of stamp
textResource The resource of text to show in stamp
previewAppearance The appearance option for creating stamp
pointLeft True if point to left
pointRight True if point to right

Public Methods

public int describeContents ()

public static StandardStampPreviewAppearance[] getStandardStampAppearancesFromBundle (Bundle bundle)

Gets an array of standard rubber stamp appearances from bundle

Parameters
bundle The bundle
Returns
  • An array of standard rubber stamp appearances

public String getText (Context context)

Parameters
context used to return a string from text resource if available.
Returns
  • Returns the text associated with this stamp preview. If no text is available, returns an the stamp's label.

public static void putStandardStampAppearancesToBundle (Bundle bundle, StandardStampPreviewAppearance[] standardStampPreviewAppearances)

Puts an array of standard rubber stamp appearances into a bundle.

Parameters
bundle The bundle
standardStampPreviewAppearances An array of standard rubber stamp appearances

public void writeToParcel (Parcel dest, int flags)