public interface SpenInPaintingViewInterface extends SpenSettingViewInterface, SpenSettingViewPenInterface, SpenSettingViewEraserInterface
SpenSettingViewPenInterface.SpenBackgroundColorChangeListener| Modifier and Type | Field and Description |
|---|---|
static int |
REPLAY_STATE_ON_COMPLETE |
static int |
REPLAY_STATE_PAUSED |
static int |
REPLAY_STATE_PLAYING |
static int |
REPLAY_STATE_STOPPED |
ACTION_COLOR_PICKER, ACTION_ERASER, ACTION_GESTURE, ACTION_NONE, ACTION_RECOGNITION, ACTION_SELECTION, ACTION_STROKE, ACTION_STROKE_REMOVER, ACTION_TEXT, TOOL_ERASER, TOOL_FINGER, TOOL_MOUSE, TOOL_MULTI_TOUCH, TOOL_PEN_BUTTON, TOOL_SPEN, TOOL_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
void |
cancelStroke() |
Bitmap |
captureCurrentView(boolean includeBlank) |
Bitmap |
captureLayer(float ratio,
int layer_id) |
Bitmap |
capturePage(float ratio,
int flag) |
Bitmap |
captureRect(RectF rect) |
void |
close() |
void |
commitStroke() |
void |
doDraw(Canvas canvas) |
int |
getBlankColor() |
float |
getMaxZoomRatio() |
float |
getMinZoomRatio() |
PointF |
getPan() |
int |
getReplayDuration() |
int |
getReplayState() |
RectF |
getValidRect(int lMargin,
int tMargin,
int rMargin,
int bMargin) |
float |
getZoomRatio() |
boolean |
isHorizontalSmartScrollEnabled() |
boolean |
isRulerEnabled() |
boolean |
isToolTipEnabled() |
boolean |
isVerticalSmartScrollEnabled() |
boolean |
isZoomable() |
void |
onAttachedToWindow() |
void |
onDetachedFromWindow() |
boolean |
onHoverEvent(MotionEvent event) |
void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
void |
onScreenStateChanged(int screenState) |
void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
boolean |
onTouchEvent(MotionEvent event) |
void |
onWindowVisibilityChanged(int visibility) |
boolean |
pauseReplay() |
boolean |
resumeReplay() |
void |
setBackground(Drawable background) |
void |
setBackgroundColor(int color) |
void |
setBackgroundDrawable(Drawable background) |
void |
setBackgroundResource(int resid) |
void |
setBlankColor(int color) |
void |
setColorPickerListener(SpenColorPickerListener listener) |
void |
setDoubleTapZoomable(boolean enable) |
void |
setEraserChangeListener(SpenEraserChangeListener listener) |
boolean |
setForceStretchView(boolean enable,
int width,
int height) |
void |
setHorizontalSmartScrollEnabled(boolean enable,
Rect leftScrollRegion,
Rect rightScrollRegion,
int responseTime,
int velocity) |
boolean |
setLayerBackgroundBitmap(int layerId,
Bitmap bitmap,
int wrappingmode) |
boolean |
setLayerBackgroundBitmap(int layerId,
Bitmap bitmap,
RectF dstRect,
int fullBitmapWidth,
int fullBitmapHeight) |
void |
setLongPressListener(SpenLongPressListener listener) |
boolean |
setMaxZoomRatio(float ratio) |
boolean |
setMinZoomRatio(float ratio) |
boolean |
setPaintingDoc(SpenPaintingDoc paintingDoc,
boolean isUpdate) |
void |
setPan(PointF position) |
void |
setPenChangeListener(SpenPenChangeListener listener) |
void |
setPenDetachmentListener(SpenPenDetachmentListener listener) |
void |
setPreTouchListener(SpenTouchListener listener) |
void |
setReplayListener(SpenLayeredReplayListener listener) |
boolean |
setReplayPosition(int time) |
boolean |
setReplaySpeed(int speed) |
void |
setRulerEnabled(boolean enable) |
void |
setSetPaintingDocListener(SpenSetPaintingDocListener listener) |
void |
setToolTipEnabled(boolean enable) |
void |
setTouchListener(SpenTouchListener listener) |
boolean |
setTransparentBackgroundColor(boolean enable,
int color) |
boolean |
setTransparentBackgroundImage(Bitmap bitmap,
int wrappingMode) |
void |
setVerticalSmartScrollEnabled(boolean enable,
Rect topScrollRegion,
Rect bottomScrollRegion,
int responseTime,
int velocity) |
void |
setZoom(float centerX,
float centerY,
float ratio) |
void |
setZoomable(boolean enable) |
void |
setZoomAnimationListener(SpenZoomAnimationListener listener) |
void |
setZoomListener(SpenZoomListener listener) |
boolean |
startReplay() |
boolean |
stopReplay() |
void |
update() |
void |
updateRedo(SpenPaintingDoc.HistoryUpdateInfo[] userDataList) |
void |
updateUndo(SpenPaintingDoc.HistoryUpdateInfo[] userDataList) |
closeControl, getCanvasHeight, getCanvasWidth, getToolTypeAction, setToolTypeActiongetPenSettingInfo, setBackgroundColorChangeListener, setPenSettingInfogetEraserSettingInfo, setEraserSettingInfostatic final int REPLAY_STATE_STOPPED
static final int REPLAY_STATE_PLAYING
static final int REPLAY_STATE_PAUSED
static final int REPLAY_STATE_ON_COMPLETE
void close()
boolean setPaintingDoc(SpenPaintingDoc paintingDoc, boolean isUpdate)
void setZoomable(boolean enable)
boolean isZoomable()
void setZoom(float centerX,
float centerY,
float ratio)
float getZoomRatio()
boolean setMaxZoomRatio(float ratio)
float getMaxZoomRatio()
boolean setMinZoomRatio(float ratio)
float getMinZoomRatio()
void setPan(PointF position)
PointF getPan()
void setBlankColor(int color)
int getBlankColor()
void setPenChangeListener(SpenPenChangeListener listener)
void update()
void updateUndo(SpenPaintingDoc.HistoryUpdateInfo[] userDataList)
void updateRedo(SpenPaintingDoc.HistoryUpdateInfo[] userDataList)
void setPreTouchListener(SpenTouchListener listener)
void setTouchListener(SpenTouchListener listener)
Bitmap capturePage(float ratio, int flag)
Bitmap captureCurrentView(boolean includeBlank)
boolean setTransparentBackgroundImage(Bitmap bitmap, int wrappingMode)
boolean setTransparentBackgroundColor(boolean enable,
int color)
void setToolTipEnabled(boolean enable)
boolean isToolTipEnabled()
void cancelStroke()
void setLongPressListener(SpenLongPressListener listener)
void setZoomListener(SpenZoomListener listener)
void setPenDetachmentListener(SpenPenDetachmentListener listener)
boolean setForceStretchView(boolean enable,
int width,
int height)
Bitmap captureLayer(float ratio, int layer_id)
boolean startReplay()
boolean stopReplay()
boolean pauseReplay()
boolean resumeReplay()
int getReplayState()
boolean setReplaySpeed(int speed)
boolean setReplayPosition(int time)
void setReplayListener(SpenLayeredReplayListener listener)
int getReplayDuration()
void setRulerEnabled(boolean enable)
boolean isRulerEnabled()
void commitStroke()
boolean setLayerBackgroundBitmap(int layerId,
Bitmap bitmap,
int wrappingmode)
boolean setLayerBackgroundBitmap(int layerId,
Bitmap bitmap,
RectF dstRect,
int fullBitmapWidth,
int fullBitmapHeight)
RectF getValidRect(int lMargin, int tMargin, int rMargin, int bMargin)
void setColorPickerListener(SpenColorPickerListener listener)
void setHorizontalSmartScrollEnabled(boolean enable,
Rect leftScrollRegion,
Rect rightScrollRegion,
int responseTime,
int velocity)
boolean isHorizontalSmartScrollEnabled()
void setVerticalSmartScrollEnabled(boolean enable,
Rect topScrollRegion,
Rect bottomScrollRegion,
int responseTime,
int velocity)
boolean isVerticalSmartScrollEnabled()
boolean onTouchEvent(MotionEvent event)
boolean onHoverEvent(MotionEvent event)
void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
void onSizeChanged(int w,
int h,
int oldw,
int oldh)
void onAttachedToWindow()
void onDetachedFromWindow()
void setBackground(Drawable background)
void setBackgroundDrawable(Drawable background)
void setBackgroundColor(int color)
void setBackgroundResource(int resid)
void doDraw(Canvas canvas)
void onWindowVisibilityChanged(int visibility)
void onScreenStateChanged(int screenState)
void setEraserChangeListener(SpenEraserChangeListener listener)
void setZoomAnimationListener(SpenZoomAnimationListener listener)
void setDoubleTapZoomable(boolean enable)
void setSetPaintingDocListener(SpenSetPaintingDocListener listener)