public class SpenControlStroke extends SpenControlBase
STYLE_BORDER_NONE, STYLE_BORDER_NONE_ACTION_NONE, STYLE_BORDER_OBJECT, STYLE_BORDER_STATIC| Constructor and Description |
|---|
SpenControlStroke(Context context,
SpenPageDoc pageDoc)
ControlStroke constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SpenObjectStroke |
getObject()
Get the stroke object. |
void |
onDraw(Canvas canvas)
Called when objects are drawn on the canvas.
|
void |
setObject(SpenObjectStroke objectStroke)
Set the specified stroke object. |
close, fit, getContextMenu, getMinResizeRect, getObjectList, getPixel, getRect, getStyle, isClosed, isContextMenuItemEnabled, isContextMenuVisible, isDimEnabled, isObjectOutlineEnabled, isTouchEnabled, onHoverEvent, onTouchEvent, onWindowFocusChanged, setContextMenu, setContextMenuItemEnabled, setContextMenuVisible, setDimEnabled, setMinResizeRect, setObjectOutlineEnabled, setStyle, setTouchEnabledpublic SpenControlStroke(Context context, SpenPageDoc pageDoc)
context - The context for the applicationpageDoc - The current page document.NullPointerException - Thrown if context is nullpublic void setObject(SpenObjectStroke objectStroke)
objectStroke - Stroke object attached to the control.public SpenObjectStroke getObject()
public void onDraw(Canvas canvas)
onDraw in class SpenControlBasecanvas - The Canvas instance on which objects are drawn