public class

VariableWidthSignatureView

extends View
java.lang.Object
   ↳ android.view.View
     ↳ com.pdftron.pdf.widget.signature.VariableWidthSignatureView

Summary

Nested Classes
interface VariableWidthSignatureView.InkListener Listener for the ink view to notify clear events  
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
VariableWidthSignatureView(Context context, AttributeSet attrs)
VariableWidthSignatureView(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void addListener(VariableWidthSignatureView.InkListener listener)
Adds a listener on the view
void clear()
Clear the signature, stop all processing, and re-initialize the view.
void finish()
Finish processing points and emit on finish event.
RectF getBoundingBox()
boolean onTouchEvent(MotionEvent e)
void removeListener(VariableWidthSignatureView.InkListener listener)
Removes the listener from the view
void setColor(int color)
Sets the stroke color
void setPressureSensitivity(boolean isEnabled)
Enables and disables pressure sensitive inking.
void setStrokeWidth(float strokeWidth)
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public VariableWidthSignatureView (Context context, AttributeSet attrs)

public VariableWidthSignatureView (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void addListener (VariableWidthSignatureView.InkListener listener)

Adds a listener on the view

Parameters
listener The listener

public void clear ()

Clear the signature, stop all processing, and re-initialize the view.

public void finish ()

Finish processing points and emit on finish event.

public RectF getBoundingBox ()

public boolean onTouchEvent (MotionEvent e)

public void removeListener (VariableWidthSignatureView.InkListener listener)

Removes the listener from the view

Parameters
listener The listener

public void setColor (int color)

Sets the stroke color

Parameters
color The color value

public void setPressureSensitivity (boolean isEnabled)

Enables and disables pressure sensitive inking. By default this is enabled.

Parameters
isEnabled true if pressure sensitivity is enabled, false otherwise

public void setStrokeWidth (float strokeWidth)