public class SpenBrushPenEraserLayout extends FrameLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenBrushPenEraserLayout.ActionListener
This listener interface provides callback methods to receive the response to Close EraserLayout
|
static interface |
SpenBrushPenEraserLayout.EventListener
This listener interface provides callback methods to receive the response to Clear All requests.
|
| Constructor and Description |
|---|
SpenBrushPenEraserLayout(Context context,
SpenSettingViewPenInterface canvasView)
Creates an @see SpenBrushPenEraserLayout instance with SpenSettingViewPenInterface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the SpenBrushPenEraserLayout UI.
|
protected void |
initialize() |
protected void |
initView() |
void |
setActionListener(SpenBrushPenEraserLayout.ActionListener listener)
Set the specified @see SpenSettingEraserLayout.ActionListe4ner to receive the response to Close
requests.
|
void |
setEraserListener(SpenBrushPenEraserLayout.EventListener listener)
Set the specified @see SpenSettingEraserLayout.EventListener to receive the response to Clear All
requests.
|
void |
setEraserPen()
Set Eraser Pen (It makes it possible to erase from canvasses.)
If current is writing mode, it is changed to Eraser mode.
|
protected void |
setListener() |
public SpenBrushPenEraserLayout(Context context, @NonNull SpenSettingViewPenInterface canvasView)
context - [in] The Context for application.canvasView - [in] The SpenSettingViewPenInterfaceprotected void initialize()
protected void initView()
protected void setListener()
public void close()
public void setEraserListener(SpenBrushPenEraserLayout.EventListener listener)
listener - The SpenSettingEraserLayout.EventListener instance to receive the response to clear all requests.
SpenBrushPenEraserLayout.EventListenerpublic void setActionListener(SpenBrushPenEraserLayout.ActionListener listener)
listener - The SpenSettingEraserLayout.ActionListener instance to receive the response to close SpenBrushPenEraserLayout.
SpenBrushPenEraserLayout.EventListenerpublic void setEraserPen()