@Deprecated public class SpenSettingEraserLayout extends RelativeLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenSettingEraserLayout.ActionListener
Deprecated.
Listeners to inform action event
|
static interface |
SpenSettingEraserLayout.EventListener
Deprecated.
This listener interface provides callback methods to receive the response to Clear All requests.
|
static interface |
SpenSettingEraserLayout.ViewListener
Deprecated.
Listeners to inform View visibility changed
|
| Modifier and Type | Field and Description |
|---|---|
static int |
VIEW_MODE_NORMAL
Deprecated.
|
static int |
VIEW_MODE_SIZE
Deprecated.
|
static int |
VIEW_MODE_TITLE
Deprecated.
|
static int |
VIEW_MODE_TYPE
Deprecated.
|
| Constructor and Description |
|---|
SpenSettingEraserLayout(Context context,
String customImagePath,
RelativeLayout relativeLayout)
Deprecated.
Creates an SpenSettingEraserLayout instance with the specified image file path and relative layout.
|
SpenSettingEraserLayout(Context context,
String customImagePath,
RelativeLayout relativeLayout,
float ratio)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
close Setting UI.
|
SpenSettingEraserInfo |
getInfo()
Deprecated.
Get the eraser settings information.
|
int |
getViewMode()
Deprecated.
|
void |
requestLayout()
Deprecated.
Call this when something has changed which has invalidated the layout of this view.
|
void |
setActionListener(SpenSettingEraserLayout.ActionListener listener)
Deprecated.
Set the specified SpenSettingEraserLayout.ActionListener to receive action events.
|
void |
setCanvasView(SpenSettingViewInterface canvasView)
Deprecated.
Set the specified canvas view.
|
void |
setEraserInfoList(SpenSettingEraserInfo[] list)
Deprecated.
Set the specified eraser settings information list.
|
void |
setEraserListener(SpenSettingEraserLayout.EventListener listener)
Deprecated.
Set the specified @see SpenSettingEraserLayout.EventListener to receive the response to Clear All
requests.
|
void |
setIndicatorPosition(int x)
Deprecated.
|
void |
setInfo(SpenSettingEraserInfo settingEraserInfo)
Deprecated.
Set the specified eraser settings information.
|
void |
setPosition(int x,
int y)
Deprecated.
Set the specified position for the popup.
|
void |
setViewMode(int viewMode)
Deprecated.
|
void |
setVisibility(int visibility)
Deprecated.
Set the specified visibility for the eraser settings view.
|
void |
setVisibilityChangedListener(SpenSettingEraserLayout.ViewListener listener)
Deprecated.
Set the specified SpenSettingEraserLayout.ViewListener to receive visibility changed events.
|
@Deprecated public static final int VIEW_MODE_NORMAL
@Deprecated public static final int VIEW_MODE_TYPE
@Deprecated public static final int VIEW_MODE_SIZE
@Deprecated public static final int VIEW_MODE_TITLE
public SpenSettingEraserLayout(Context context, String customImagePath, RelativeLayout relativeLayout)
context - [in] The Context for application and must be not null.customImagePath - [in] The path of the image to be used internally (String) and must be not null.relativeLayout - [in] The upper of the Layout and must be not null.@Deprecated public SpenSettingEraserLayout(Context context, String customImagePath, RelativeLayout relativeLayout, float ratio)
SpenSettingEraserLayout(Context, String, RelativeLayout).public void requestLayout()
requestLayout in class RelativeLayoutpublic void close()
@Deprecated public void setIndicatorPosition(int x)
x - The X coordinate of the popup indicator in pixels. If X is less than 0
or greater than setting layout's width, indicator will be inVisible.public void setPosition(int x,
int y)
x - The X coordinate of the popup in pixels.y - The Y coordinate of the popup in pixels.@Deprecated public int getViewMode()
public SpenSettingEraserInfo getInfo()
SpenSettingEraserInfo@Deprecated public void setViewMode(int viewMode)
VIEW_MODE_NORMAL mode.public void setVisibility(int visibility)
setVisibility in class Viewvisibility - The visibility mode.public void setCanvasView(SpenSettingViewInterface canvasView)
canvasView - current canvas viewpublic void setInfo(SpenSettingEraserInfo settingEraserInfo)
settingEraserInfo - The eraser settings information object. SpenSettingEraserInfopublic void setEraserInfoList(SpenSettingEraserInfo[] list)
mEraserDataList = new SpenSettingEraserInfo[SpenSettingEraserInfo.ERASER_TYPE_TEXT + 1]; SpenSettingEraserInfo penEraser = new SpenSettingEraserInfo(); SpenSettingEraserInfo textEraser = new SpenSettingEraserInfo(); penEraser.size = 5; textEraser.size = 5; mEraserDataList[SpenSettingEraserInfo.ERASER_TYPE_PEN] = penEraser; mEraserDataList[SpenSettingEraserInfo.ERASER_TYPE_TEXT] = textEraser; mSettingView.setEraserInfoList(mEraserDataList);
list - ListSpenSettingEraserInfopublic void setEraserListener(SpenSettingEraserLayout.EventListener listener)
listener - The SpenSettingEraserLayout.EventListener instance to receive the response to clear all requests.
SpenSettingEraserLayout.EventListenerpublic void setActionListener(SpenSettingEraserLayout.ActionListener listener)
listener - The SpenSettingEraserLayout.ActionListener instance to receive action events . SpenSettingEraserLayout.ActionListenerpublic void setVisibilityChangedListener(SpenSettingEraserLayout.ViewListener listener)
listener - The SpenSettingEraserLayout.ViewListener instance to receive visibility changed events.
SpenSettingEraserLayout.ViewListener