public class SpenControlList extends SpenControlBase
setGroup(boolean) to define as a
group or not. The Group object follow the minimum rule, once any one object
in the Group without resize-able, rotate-able, move-able attributes, then the
group object will not has the relative attributes.
SpenControlContainerSTYLE_BORDER_NONE, STYLE_BORDER_NONE_ACTION_NONE, STYLE_BORDER_OBJECT, STYLE_BORDER_STATIC| Constructor and Description |
|---|
SpenControlList(Context context,
SpenPageDoc pageDoc)
ControlList constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close Control.
|
void |
fit()
Fit control region according to object's size in list.
|
ArrayList<SpenObjectBase> |
getObject()
Get the list of objects |
ArrayList<SpenObjectBase> |
getObjectList()
Get all the objects in the list.
|
RectF |
getRect()
Get the current area.
|
protected void |
handleTouchUpEvent(com.samsung.android.sdk.pen.engine.SpenControlBase.ControlTouchManager.TouchZone touchZone,
PointF point)
This is called, when there is touch up event after touch zone was selected.
|
boolean |
isGroup()
Deprecated.
|
void |
onDraw(Canvas canvas)
Called when objects are drawn on the canvas.
|
boolean |
onTouchEvent(MotionEvent event)
This function is called when touch event is occurred.
|
void |
setGroup(boolean groupFlag)
Deprecated.
|
void |
setObject(ArrayList<SpenObjectBase> objectBaseList)
Set the specified list of objects. |
void |
setObjectOutlineEnabled(boolean enable)
Enable or disable object outline.
|
getContextMenu, getMinResizeRect, getPixel, getStyle, isClosed, isContextMenuItemEnabled, isContextMenuVisible, isDimEnabled, isObjectOutlineEnabled, isTouchEnabled, onConfigurationChanged, onHoverEvent, onWindowFocusChanged, setContextMenu, setContextMenuItemEnabled, setContextMenuVisible, setMinResizeRect, setStyle, setTouchEnabledpublic SpenControlList(Context context, SpenPageDoc pageDoc)
context - The context for the application.pageDoc - The current page document.public void setObject(ArrayList<SpenObjectBase> objectBaseList)
objectBaseList - The list of objects attached to the control.public ArrayList<SpenObjectBase> getObject()
public RectF getRect()
getRect in class SpenControlBasepublic void setObjectOutlineEnabled(boolean enable)
setObjectOutlineEnabled in class SpenControlBaseenable - Set to true to enable object outline, set to false to disable object outline.public boolean onTouchEvent(MotionEvent event)
SpenControlBaseonTouchEvent in class SpenControlBasepublic void onDraw(Canvas canvas)
onDraw in class SpenControlBasecanvas - The canvas on which objects are drawn@Deprecated public void setGroup(boolean groupFlag)
groupFlag - Set to true to tie up all objects in a group,
set to false to untie up all objects operating as an individual object.isGroup(),
onDraw(Canvas canvas)@Deprecated public boolean isGroup()
setGroup(boolean)public ArrayList<SpenObjectBase> getObjectList()
getObjectList in class SpenControlBasepublic void close()
close in class SpenControlBasepublic void fit()
fit in class SpenControlBaseprotected void handleTouchUpEvent(com.samsung.android.sdk.pen.engine.SpenControlBase.ControlTouchManager.TouchZone touchZone,
PointF point)
SpenControlBasetouchZone - selected touchZonepoint - up touch point