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 ISelectionHelperpublic boolean onLongPress(float x,
float y)
onLongPress in interface ISelectionHelperpublic boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent in interface ISelectionHelperpublic void setISelectCallback(ISelectionHelper.ISelectCallback selectCallback)
setISelectCallback in interface ISelectionHelperpublic boolean onSelectTouchEvent(android.view.MotionEvent event,
ISelectionHelper.ISelectCallback selectCallback)
onSelectTouchEvent in interface ISelectionHelperpublic void findSelections(android.graphics.PointF point1,
android.graphics.PointF point2)
public void onAttach()
onAttach in interface ISelectionHelperpublic void onDetach()
onDetach in interface ISelectionHelperpublic boolean isAttached()
isAttached in interface ISelectionHelperpublic void cancelSelections()
cancelSelections in interface ISelectionHelperpublic void setSelections(java.util.ArrayList<android.graphics.RectF> selections)
setSelections in interface ISelectionHelperpublic java.util.List<android.graphics.RectF> getSelectionsRect()
getSelectionsRect in interface ISelectionHelperpublic java.util.List<CPDFTextSelection> getSelections()
getSelections in interface ISelectionHelper