public interface SpenPaintingViewInterface 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() |
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 |
isPaperEnabled() |
boolean |
isRulerEnabled() |
boolean |
isToolTipEnabled() |
boolean |
isVerticalSmartScrollEnabled() |
boolean |
isZoomable() |
boolean |
pauseReplay() |
boolean |
resumeReplay() |
void |
setBlankColor(int color) |
void |
setColorPickerListener(SpenColorPickerListener 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) |
boolean |
setLayerBitmap(int layerId,
Bitmap bitmap,
int wrappingmode) |
void |
setLongPressListener(SpenLongPressListener listener) |
boolean |
setMaxZoomRatio(float ratio) |
boolean |
setMinZoomRatio(float ratio) |
void |
setMouseWheelZoomEnabled(boolean wheelZoomEnabled) |
boolean |
setPaintingDoc(SpenPaintingDoc paintingDoc,
boolean isUpdate) |
void |
setPan(PointF position) |
void |
setPaperEnabled(boolean enable) |
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 |
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 |
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()
void setMouseWheelZoomEnabled(boolean wheelZoomEnabled)
boolean setLayerBitmap(int layerId,
Bitmap bitmap,
int wrappingmode)
void setPaperEnabled(boolean enable)
boolean isPaperEnabled()