public abstract class AnnotDrawingTool
extends com.qoppa.notes.views.annotcomps.AnnotComponentMovable
QPDFNotesView.startDrawingTool(AnnotDrawingTool). Once
started, upon the next touch event the startDrawing(PointF, PDFPageView) method is called.
This method calls initAnnot(PointF) to create an Annotation at the given location.QPDFNotesView.clearDrawingTool() is called, future touch events will be forwarded to the AnnotComponentMovable.dragged(MotionEvent),
released(MotionEvent), and AnnotComponentMovable.pressed(MotionEvent) methods. The finishDrawing() method calls QPDFNotesView.clearDrawingTool().| Constructor and Description |
|---|
AnnotDrawingTool(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
doubleTap(MotionEvent e) |
int |
getInitAlpha() |
int |
getInitBorderColor() |
float |
getInitBorderWidth() |
int |
getInitFillColor() |
boolean |
isInitHasBorderColor() |
boolean |
isInitHasFillColor() |
void |
released(MotionEvent e) |
void |
setInitAlpha(int alpha) |
void |
setInitBorderColor(int color) |
void |
setInitBorderWidth(float borderWidth) |
void |
setInitFillColor(int color) |
void |
setInitHasBorderColor(boolean hasColor) |
void |
setInitHasFillColor(boolean hasColor) |
void |
startDrawing(PointF initPoint,
PDFPageView pageView) |
abstract boolean |
supportsFillColor() |
dragged, getPressed, presseddelete, getAnnot, getBounds, getDirtyRect, getPageView, getScreenLocation, getViewer, showNote, singleTappublic void startDrawing(PointF initPoint,
PDFPageView pageView)
public void doubleTap(MotionEvent e)
doubleTap in class AnnotComponentpublic void released(MotionEvent e)
released in class com.qoppa.notes.views.annotcomps.AnnotComponentMovablepublic float getInitBorderWidth()
public void setInitBorderWidth(float borderWidth)
public int getInitBorderColor()
public void setInitBorderColor(int color)
public boolean isInitHasBorderColor()
public void setInitHasBorderColor(boolean hasColor)
public int getInitFillColor()
public void setInitFillColor(int color)
public boolean isInitHasFillColor()
public void setInitHasFillColor(boolean hasColor)
public int getInitAlpha()
public void setInitAlpha(int alpha)
public abstract boolean supportsFillColor()