public class NoteDrawingTool extends ShapeDrawingTool
initAnnot(PointF)
, instantiates a Note Annotation using the values from NoteAnnotSettings
;
adjusts the Annotations's bounds as the user drags; and calls finishDrawing()
when the user releases.Constructor and Description |
---|
NoteDrawingTool(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
dragged(MotionEvent e)
This is called when the annotation is initially draw/placed
|
RectF |
getScreenLocation() |
void |
setInitAlpha(int alpha) |
void |
setInitBorderColor(int color) |
void |
setInitBorderWidth(float borderWidth) |
void |
setInitFillColor(int color) |
void |
setInitHasBorderColor(boolean hasColor) |
void |
setInitHasFillColor(boolean hasColor) |
boolean |
supportsFillColor() |
released
doubleTap, getInitAlpha, getInitBorderColor, getInitBorderWidth, getInitFillColor, isInitHasBorderColor, isInitHasFillColor, startDrawing
getPressed, pressed
delete, getAnnot, getBounds, getDirtyRect, getPageView, getViewer, showNote, singleTap
public void dragged(MotionEvent e)
com.qoppa.notes.views.annotcomps.AnnotComponentMovable
dragged
in class ShapeDrawingTool
public RectF getScreenLocation()
getScreenLocation
in class AnnotComponent
public void setInitBorderWidth(float borderWidth)
setInitBorderWidth
in class AnnotDrawingTool
public void setInitBorderColor(int color)
setInitBorderColor
in class AnnotDrawingTool
public void setInitHasBorderColor(boolean hasColor)
setInitHasBorderColor
in class AnnotDrawingTool
public void setInitFillColor(int color)
setInitFillColor
in class AnnotDrawingTool
public void setInitHasFillColor(boolean hasColor)
setInitHasFillColor
in class AnnotDrawingTool
public void setInitAlpha(int alpha)
setInitAlpha
in class AnnotDrawingTool
public boolean supportsFillColor()
supportsFillColor
in class AnnotDrawingTool