public interface SpenControlListener
| Modifier and Type | Field and Description |
|---|---|
static int |
PRESS_TYPE_LONG_PRESS
Long press.
|
static int |
PRESS_TYPE_NONE
No press.
|
static int |
PRESS_TYPE_TAP
Tapping on the view.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onClosed(ArrayList<SpenObjectBase> objectList)
This handler is called when control is closed
|
boolean |
onCreated(ArrayList<SpenObjectBase> objectList,
ArrayList<Rect> relativeRectList,
ArrayList<SpenContextMenuItemInfo> menu,
ArrayList<Integer> styleList,
int pressType,
PointF point)
This handler is called when control is created.
|
boolean |
onMenuSelected(ArrayList<SpenObjectBase> objectList,
int itemId)
This handler is called when context menu is selected in
control.
|
void |
onObjectChanged(ArrayList<SpenObjectBase> objectList)
This handler is called when object position, size, rotation is
changed.
|
void |
onRectChanged(RectF rect,
SpenObjectBase object)
This handler is called when object rect is changed.
|
void |
onRotationChanged(float angle,
SpenObjectBase objectBase)
This handler is called when object rotation is changed.
|
static final int PRESS_TYPE_NONE
static final int PRESS_TYPE_TAP
static final int PRESS_TYPE_LONG_PRESS
boolean onClosed(ArrayList<SpenObjectBase> objectList)
objectList - List of selected objectboolean onCreated(ArrayList<SpenObjectBase> objectList, ArrayList<Rect> relativeRectList, ArrayList<SpenContextMenuItemInfo> menu, ArrayList<Integer> styleList, int pressType, PointF point)
objectList - List of selected objectrelativeRectList - List of relative rectangle of selected objectsmenu - List of menu itemstyleList - List of control stylepressType - Type of presspoint - Point of control listvoid onObjectChanged(ArrayList<SpenObjectBase> objectList)
objectList - List of selected objectsvoid onRectChanged(RectF rect, SpenObjectBase object)
onObjectChanged(ArrayList) is called when touch action is finished,
but onRectChanged(RectF, SpenObjectBase) is called in the middle of touch action.rect - Rect of objectobject - Object that is set to controlvoid onRotationChanged(float angle,
SpenObjectBase objectBase)
onObjectChanged(ArrayList) is called when touch action is finished,
but onRotationChanged(float, SpenObjectBase) is called in the middle of touch action.angle - Rotation angleobjectBase - Object that is set to controlboolean onMenuSelected(ArrayList<SpenObjectBase> objectList, int itemId)
objectList - List of objectitemId - ID of item