6.3.2.9.11. Sign

public class Sign extends View implements IFormControl

A special control for create sign picture.

6.3.2.9.11.1. Fields

6.3.2.9.11.1.1. CLEAR_BUFF_DP

protected final int CLEAR_BUFF_DP

6.3.2.9.11.1.2. CLEAR_IMAGE_SIZE_DP

protected final int CLEAR_IMAGE_SIZE_DP

6.3.2.9.11.1.3. SIGN_FILE

public static final String SIGN_FILE

6.3.2.9.11.1.4. TOUCH_TOLERANCE

protected static final float TOUCH_TOLERANCE

6.3.2.9.11.1.5. mCleanImage

protected Drawable mCleanImage

6.3.2.9.11.1.6. mClearBuff

protected int mClearBuff

6.3.2.9.11.1.7. mClearImageSize

protected int mClearImageSize

6.3.2.9.11.1.8. mNotInitialized

protected boolean mNotInitialized

6.3.2.9.11.1.9. mPaint

protected Paint mPaint

6.3.2.9.11.1.10. mPath

protected Path mPath

6.3.2.9.11.1.11. mPaths

protected final LinkedList<Path> mPaths

6.3.2.9.11.1.12. mPreviousSign

protected File mPreviousSign

6.3.2.9.11.1.13. mPreviousSignBitmap

protected Bitmap mPreviousSignBitmap

6.3.2.9.11.1.14. mPreviousSignPath

protected String mPreviousSignPath

6.3.2.9.11.1.15. mX

protected float mX

6.3.2.9.11.2. Constructors

6.3.2.9.11.2.1. Sign

public Sign(Context context)

6.3.2.9.11.2.2. Sign

public Sign(Context context, AttributeSet attrs)

6.3.2.9.11.2.3. Sign

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

6.3.2.9.11.2.4. Sign

public Sign(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

6.3.2.9.11.3. Methods

6.3.2.9.11.3.1. addToLayout

public void addToLayout(ViewGroup layout)

6.3.2.9.11.3.2. drawSign

protected void drawSign(Canvas canvas, int bkColor, Paint paint)

6.3.2.9.11.3.3. getFieldName

public String getFieldName()

6.3.2.9.11.3.4. getValue

public Object getValue()

6.3.2.9.11.3.5. init

protected void init()

6.3.2.9.11.3.6. init

public void init(JSONObject element, List<Field> fields, Bundle savedState, Cursor featureCursor, SharedPreferences lastValue)

6.3.2.9.11.3.7. isShowLast

public boolean isShowLast()

6.3.2.9.11.3.8. onDraw

protected void onDraw(Canvas canvas)

6.3.2.9.11.3.9. onSizeChanged

protected void onSizeChanged(int w, int h, int oldw, int oldh)

6.3.2.9.11.3.10. onTouchEvent

public boolean onTouchEvent(MotionEvent event)

6.3.2.9.11.3.11. save

public void save(int width, int height, boolean transparentBackground, File sigFile)

6.3.2.9.11.3.12. saveLastValue

public void saveLastValue(SharedPreferences preferences)

6.3.2.9.11.3.13. saveState

public void saveState(Bundle outState)

6.3.2.9.11.3.14. setPath

public void setPath(String path)

6.3.2.9.11.3.15. touchMove

protected void touchMove(float x, float y)

6.3.2.9.11.3.16. touchStart

protected void touchStart(float x, float y)

6.3.2.9.11.3.17. touchUp

protected void touchUp()