public class CPDFPageSelections extends java.lang.Object implements ISelectionHelper
ISelectionHelper.ISelectCallback
Constructor and Description |
---|
CPDFPageSelections(android.content.Context context,
CPDFPageView pageView) |
Modifier and Type | Method and Description |
---|---|
void |
cancelSelections() |
void |
findSelections(android.graphics.PointF point1,
android.graphics.PointF point2) |
java.util.List<CPDFTextSelection> |
getSelections() |
java.util.List<android.graphics.RectF> |
getSelectionsRect() |
boolean |
isAttached() |
void |
onAttach() |
void |
onDetach() |
void |
onDraw(android.graphics.Canvas canvas) |
boolean |
onLongPress(float x,
float y) |
boolean |
onSelectTouchEvent(android.view.MotionEvent event,
ISelectionHelper.ISelectCallback selectCallback) |
boolean |
onTouchEvent(android.view.MotionEvent event) |
void |
setISelectCallback(ISelectionHelper.ISelectCallback selectCallback) |
void |
setPDFDocument(CPDFDocument pdfDocument) |
void |
setSelections(java.util.ArrayList<android.graphics.RectF> selections) |
public CPDFPageSelections(android.content.Context context, CPDFPageView pageView)
public void setPDFDocument(CPDFDocument pdfDocument)
public void onDraw(android.graphics.Canvas canvas)
onDraw
in interface ISelectionHelper
public boolean onLongPress(float x, float y)
onLongPress
in interface ISelectionHelper
public boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent
in interface ISelectionHelper
public void setISelectCallback(ISelectionHelper.ISelectCallback selectCallback)
setISelectCallback
in interface ISelectionHelper
public boolean onSelectTouchEvent(android.view.MotionEvent event, ISelectionHelper.ISelectCallback selectCallback)
onSelectTouchEvent
in interface ISelectionHelper
public void findSelections(android.graphics.PointF point1, android.graphics.PointF point2)
public void onAttach()
onAttach
in interface ISelectionHelper
public void onDetach()
onDetach
in interface ISelectionHelper
public boolean isAttached()
isAttached
in interface ISelectionHelper
public void cancelSelections()
cancelSelections
in interface ISelectionHelper
public void setSelections(java.util.ArrayList<android.graphics.RectF> selections)
setSelections
in interface ISelectionHelper
public java.util.List<android.graphics.RectF> getSelectionsRect()
getSelectionsRect
in interface ISelectionHelper
public java.util.List<CPDFTextSelection> getSelections()
getSelections
in interface ISelectionHelper