public class SpenSettingRemoverLayout extends RelativeLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenSettingRemoverLayout.ActionListener
Listeners to inform action event
|
static interface |
SpenSettingRemoverLayout.EventListener
This listener interface provides callback methods for receiving responses to Clear All requests.
|
static interface |
SpenSettingRemoverLayout.ViewListener
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 |
|---|
SpenSettingRemoverLayout(Context context,
String customImagePath,
RelativeLayout relativeLayout)
Creates an SpenSettingRemoverLayout instance with the specified image path and relative layout.
Remover Setting Layout does not support (RTL) Right To Left mirroring, therefore, please set layout direction View.LAYOUT_DIRECTION_LTR for its parent view so that SDK can have normal display and operation. The following parameters must be not null. |
SpenSettingRemoverLayout(Context context,
String customImagePath,
RelativeLayout relativeLayout,
float ratio)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Settings UI.
|
SpenSettingRemoverInfo |
getInfo()
Get the remover settings information.
|
int |
getViewMode()
Deprecated.
|
void |
requestLayout()
Override from View's requestLayout()
|
void |
setActionListener(SpenSettingRemoverLayout.ActionListener listener)
Set the specified SpenSettingRemoverLayout.ActionListener to receive action events.
|
void |
setCanvasView(SpenSettingViewInterface canvasView)
Set the specified canvas view.
|
void |
setIndicatorPosition(int x)
Set the specified position for the popup indicator.
|
void |
setInfo(SpenSettingRemoverInfo settingCutterInfo)
Set the specified remover settings information.
|
void |
setPosition(int x,
int y)
Set the specified position for the popup.
|
void |
setRemoverInfoList(SpenSettingRemoverInfo[] list)
Set the specified list of remover settings information.
|
void |
setRemoverListener(SpenSettingRemoverLayout.EventListener listener)
set up the remover listener - request for clear all
|
void |
setViewMode(int viewMode)
Deprecated.
|
void |
setVisibility(int visibility)
Set the specified visibility mode for the Remover settings view.
|
void |
setVisibilityChangedListener(SpenSettingRemoverLayout.ViewListener listener)
Set the specified SpenSettingRemoverLayout.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 SpenSettingRemoverLayout(Context context, String customImagePath, RelativeLayout relativeLayout)
context - [in] The Context for application.customImagePath - [in] The path of the image to be used internally (String).relativeLayout - [in] The upper of the Layout@Deprecated public SpenSettingRemoverLayout(Context context, String customImagePath, RelativeLayout relativeLayout, float ratio)
SpenSettingRemoverLayout(Context, String, RelativeLayout).public void requestLayout()
requestLayout in class RelativeLayoutpublic void close()
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 SpenSettingRemoverInfo getInfo()
SpenSettingRemoverInfo@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(SpenSettingRemoverInfo settingCutterInfo)
settingCutterInfo - remover setting information SpenSettingRemoverInfopublic void setRemoverInfoList(SpenSettingRemoverInfo[] list)
mCutterDataList = new SpenSettingRemoverInfo[SpenSettingRemoverInfo.CUTTER_TYPE_REMOVE + 1]; SpenSettingRemoverInfo removeCutter = new SpenSettingRemoverInfo(); SpenSettingRemoverInfo patialCutter = new SpenSettingRemoverInfo(); removeCutter.size = 5; patialCutter.size = 5; mCutterDataList[SpenSettingRemoverInfo.CUTTER_TYPE_CUT] = removeCutter; mCutterDataList[SpenSettingRemoverInfo.CUTTER_TYPE_REMOVE] = patialCutter; mSettingView.setCutterInfoList(mCutterDataList);
list - ListSpenSettingRemoverInfopublic void setRemoverListener(SpenSettingRemoverLayout.EventListener listener)
listener - SpenSettingRemoverLayout.EventListenerpublic void setActionListener(SpenSettingRemoverLayout.ActionListener listener)
listener - The SpenSettingRemoverLayout.ActionListener instance to receive action events . SpenSettingRemoverLayout.ActionListenerpublic void setVisibilityChangedListener(SpenSettingRemoverLayout.ViewListener listener)
listener - The SpenSettingRemoverLayout.ViewListener instance to receive visibility changed events.
SpenSettingRemoverLayout.ViewListener