If you think the Android project RadaeePDF-B4A listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.rootsoft.rspdfviewer.pdf;
/*fromwww.java2s.com*/import anywheresoftware.b4a.AbsObjectWrapper;
import anywheresoftware.b4a.BA.ShortName;
import com.radaee.pdf.HWriting;
@ShortName("PDFHWriting")
publicclass RSPDFHWriting extends AbsObjectWrapper<HWriting> {
//Attributes
//Constructors - Initialization
/**
* Initializes the PDF HWriting.
* class for hand-writing ink.
* not same to Ink class, this class has max line width and min line width.
* so the line in HWriting will not in same width.
*/publicvoid Initialize(int w, int h, float min_w, float max_w, int clr_r, int clr_g, int clr_b) {
setObject(new HWriting(w, h, min_w, max_w, clr_r, clr_g, clr_b));
}
/**
* destroy and free memory.
*/publicvoid Destroy()
{
getObject().Destroy();
}
/**
* call when click down
* @param x x value of point in this object.
* @param y y value of point in this object.
*/publicvoid OnDown( float x, float y )
{
getObject().OnDown(x, y);
}
/**
* call when moving
* @param x x value of point in this object.
* @param y y value of point in this object.
*/publicvoid OnMove( float x, float y )
{
getObject().OnMove(x, y);
}
/**
* call when click up
* @param x x value of point in this object.
* @param y y value of point in this object.
*/publicvoid OnUp( float x, float y )
{
getObject().OnUp(x, y);
}
/**
* draw to locked bitmap handle.
* @param bmp, obtained by Global.lockBitmap()
*/publicvoid OnDraw( int bmp )
{
getObject().OnDraw(bmp);
}
}