public class SpenComposerView extends View
| Modifier and Type | Field and Description |
|---|---|
static int |
BACKGROUND_PATTERN_CHECK_DENSITY_1
Background pattern with check pattern 1
|
static int |
BACKGROUND_PATTERN_CHECK_DENSITY_2
Background pattern with check pattern 2
|
static int |
BACKGROUND_PATTERN_CHECK_DENSITY_3
Background pattern with check pattern 3
|
static int |
BACKGROUND_PATTERN_CHECK_DENSITY_4
Background pattern with check pattern 4
|
static int |
BACKGROUND_PATTERN_LINE_SPACING_1
Background pattern with line spacing pattern 1
|
static int |
BACKGROUND_PATTERN_LINE_SPACING_2
Background pattern with line spacing pattern 2
|
static int |
BACKGROUND_PATTERN_LINE_SPACING_3
Background pattern with line spacing pattern 3
|
static int |
BACKGROUND_PATTERN_LINE_SPACING_4
Background pattern with line spacing pattern 4
|
static int |
BACKGROUND_PATTERN_NONE
Background pattern with no pattern
|
static int |
CATEGORY_HOLDER_INDEX
The index of category holder
|
static int |
FIRST_HOLDER_INDEX
The index of first holder
|
static int |
LAST_MODIFIED_TIME_INDEX
The index of last modified holder
|
static int |
MODE_EDIT
Mode edit
|
static int |
MODE_RECYCLEBIN
Mode recycleBin
|
static int |
MODE_VIEW
Mode view
|
static int |
NO_HOLDER_INDEX
The index of no holder
|
static int |
TITLE_HOLDER_INDEX
The index of title holder
|
| Constructor and Description |
|---|
SpenComposerView(Context context)
Creates an SpenComposerView instance.
|
SpenComposerView(Context context,
AttributeSet attrs)
Creates an SpenComposerView instance.
|
SpenComposerView(Context context,
AttributeSet attrs,
int defStyleAttr)
Creates an SpenComposerView instance.
|
SpenComposerView(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
Creates an SpenComposerView instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the composer view.
|
int |
getBackgroundPattern()
Get background pattern of writing
|
SpenContentBase |
getFocusItem()
Get focused item(content)
|
int |
getMode()
Get mode of composerView
|
float |
getPan()
Get the specified pan position and move to the position in the view.
|
SpenWritingControl |
getWritingControl()
Get the current writing control.
|
boolean |
isActionLinkEnabled()
Check if action link is enabled.
|
boolean |
isCategoryFocused() |
boolean |
isEasyWritingPadEnabled()
Check if easy writing mode is enabled.
|
boolean |
isRichCanvasEnabled()
Check if the rich canvas mode is enabled.
|
boolean |
isSpenOnlyMode()
Check if spen only mode is enabled.
|
void |
requestReadyForSave(boolean stopRecording)
Request to wait saving handwriting and stop recording.
|
void |
scrollToCursor()
Set the cursor position of your view.
|
void |
setActionLinkEnabled(boolean enable)
Enable or disable the action link.
|
void |
setActionListner(SpenActionListener l)
Set the specified SpenActionListener instance to receive action events.
|
void |
setBackgroundPattern(int pattern)
Set background pattern of writing
|
boolean |
setCategoryName(String name)
Set category name of current document
|
boolean |
setContentHintText(String contentHintText)
Set content hint text
|
void |
setContextMenuListener(SpenContextMenuListener l)
Set the specified SpenContextMenuListener instance to receive context menu events.
|
void |
setCursorChangedListener(SpenCursorChangedListener l)
Set the specified SpenCursorChangedListener instance to receive cursor changed events.
|
void |
setDialogActionListener(SpenDialogActionListener l)
Set the specified SpenDialogActionListener instance to receive dialog events.
|
boolean |
setDocument(SpenSDoc doc)
Set SpenSDoc document to this view.
|
void |
setEasyWritingPadEnabled(boolean enable)
Enable or disable the easy writing mode
|
void |
setEdgeEffectListener(com.samsung.android.sdk.composer.composer.SpenScrollBarEdgeEffectListener l)
Set the specified SpenScrollBarEdgeEffectListener instance to receive edge effect events.
|
void |
setFocus(SpenContentBase content)
Set the focus to a content.
|
void |
setHighlightText(String highlight)
Set the specified highlight text.
|
void |
setItemClickListener(SpenItemClickListener l)
Set the specified SpenItemClickListener instance to receive clicked events.
|
void |
setItemLongPressListener(SpenItemLongPressListener l)
Set the specified SpenItemLongPressListener instance to receive long press events.
|
boolean |
setLastModifiedTime(String time)
Set last modified time of current document
|
void |
setMode(int mode)
Set mode of composerView
|
boolean |
setPan(float dy)
Set the specified pan position and move to the position in the view.
|
void |
setRichCanvasEnabled(boolean enable)
Enable or disable the rich canvas mode
|
void |
setScrollListener(SpenScrollListener l)
Set the specified SpenScrollListener instance to receive scroll events.
|
void |
setSearchData(ArrayList<com.samsung.android.sdk.composer.document.SpenSDoc.SearchData> dataList)
Set the specified search data for highlight text and visual cue.
|
void |
setSettingContainer(ViewGroup group)
Set the upper layout to use at setting view in handwriting.
|
void |
setSoftInputListener(SpenSoftInputListener l)
Set the specified SpenSoftInputListener instance to receive soft input events.
|
void |
setSpenOnlyMode(boolean enable)
Enable or disable the spen only mode
|
void |
startActionMode()
Enable the visibility of the context menu.
|
void |
stopActionMode()
Disable the visibility of the context menu.
|
public static final int FIRST_HOLDER_INDEX
public static final int TITLE_HOLDER_INDEX
public static final int CATEGORY_HOLDER_INDEX
public static final int LAST_MODIFIED_TIME_INDEX
public static final int NO_HOLDER_INDEX
public static final int MODE_VIEW
setMode(int),
Constant Field Valuespublic static final int MODE_EDIT
setMode(int),
Constant Field Valuespublic static final int MODE_RECYCLEBIN
setMode(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_NONE
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_LINE_SPACING_1
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_LINE_SPACING_2
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_LINE_SPACING_3
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_LINE_SPACING_4
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_CHECK_DENSITY_1
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_CHECK_DENSITY_2
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_CHECK_DENSITY_3
setBackgroundPattern(int),
Constant Field Valuespublic static final int BACKGROUND_PATTERN_CHECK_DENSITY_4
setBackgroundPattern(int),
Constant Field Valuespublic SpenComposerView(Context context)
context - The Context for your application.SpenComposerView(Context, AttributeSet),
SpenComposerView(Context, AttributeSet, int),
SpenComposerView(Context, AttributeSet, int, int)public SpenComposerView(Context context, AttributeSet attrs)
context - The Context for your application.SpenComposerView(Context),
SpenComposerView(Context, AttributeSet, int),
SpenComposerView(Context, AttributeSet, int, int)public SpenComposerView(Context context, AttributeSet attrs, int defStyleAttr)
context - The Context for your application.SpenComposerView(Context),
SpenComposerView(Context, AttributeSet),
SpenComposerView(Context, AttributeSet, int, int)public SpenComposerView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
context - The Context for your application.SpenComposerView(Context),
SpenComposerView(Context, AttributeSet),
SpenComposerView(Context, AttributeSet, int)public void setContextMenuListener(SpenContextMenuListener l)
l - The SpenContextMenuListener instance to receive context menu events.public void setScrollListener(SpenScrollListener l)
l - The SpenScrollListener instance to receive scroll events.public void setItemClickListener(SpenItemClickListener l)
l - The SpenItemClickListener instance to receive clicked events.public void setItemLongPressListener(SpenItemLongPressListener l)
l - The SpenItemLongPressListener instance to receive long press events.public void setSoftInputListener(SpenSoftInputListener l)
l - The SpenSoftInputListener instance to receive soft input events.public void setCursorChangedListener(SpenCursorChangedListener l)
l - The SpenCursorChangedListener instance to receive cursor changed events.public void setActionListner(SpenActionListener l)
l - The SpenActionListener instance to receive action events.public void setDialogActionListener(SpenDialogActionListener l)
l - The SpenDialogActionListener instance to receive dialog events.public void setEdgeEffectListener(com.samsung.android.sdk.composer.composer.SpenScrollBarEdgeEffectListener l)
l - The SpenScrollBarEdgeEffectListener instance to receive edge effect events.public void setSpenOnlyMode(boolean enable)
enable - Set to true to enable the spen only mode, set to false to disable
the spen only mode.public boolean isSpenOnlyMode()
public void close()
public void setMode(int mode)
mode - mode of composerView
MODE_VIEW
MODE_EDIT
MODE_RECYCLEBINpublic int getMode()
MODE_VIEW
MODE_EDIT
MODE_RECYCLEBINpublic boolean setCategoryName(String name)
name - category name of current documentpublic boolean setLastModifiedTime(String time)
time - time string according to system time string settingpublic boolean setContentHintText(String contentHintText)
contentHintText - The hint text for empty contentpublic boolean setDocument(SpenSDoc doc)
doc - SpenSDoc document.public void setSettingContainer(ViewGroup group)
public void startActionMode()
public void stopActionMode()
public SpenWritingControl getWritingControl()
public void setFocus(SpenContentBase content)
content - content will has focuspublic void requestReadyForSave(boolean stopRecording)
stopRecording - Set to true to stop recording for save, set to false do not stop recording even if recording workspublic SpenContentBase getFocusItem()
setFocus(SpenContentBase)public void scrollToCursor()
setScrollListener(SpenScrollListener)} and the view will be
invalidated.public boolean setPan(float dy)
dy - The pan position.public float getPan()
public void setHighlightText(String highlight)
highlight - The highlight text.public void setRichCanvasEnabled(boolean enable)
enable - Set to true to enable the rich canvas mode, set to false to disable
the rich canvas mode.public boolean isRichCanvasEnabled()
public void setSearchData(ArrayList<com.samsung.android.sdk.composer.document.SpenSDoc.SearchData> dataList)
dataList - List of search datapublic void setBackgroundPattern(int pattern)
pattern - background pattern
BACKGROUND_PATTERN_NONE
BACKGROUND_PATTERN_LINE_SPACING_1
BACKGROUND_PATTERN_LINE_SPACING_2
BACKGROUND_PATTERN_LINE_SPACING_3
BACKGROUND_PATTERN_LINE_SPACING_4
BACKGROUND_PATTERN_CHECK_DENSITY_1
BACKGROUND_PATTERN_CHECK_DENSITY_2
BACKGROUND_PATTERN_CHECK_DENSITY_3
BACKGROUND_PATTERN_CHECK_DENSITY_4public int getBackgroundPattern()
pattern - background pattern
BACKGROUND_PATTERN_NONE
BACKGROUND_PATTERN_LINE_SPACING_1
BACKGROUND_PATTERN_LINE_SPACING_2
BACKGROUND_PATTERN_LINE_SPACING_3
BACKGROUND_PATTERN_LINE_SPACING_4
BACKGROUND_PATTERN_CHECK_DENSITY_1
BACKGROUND_PATTERN_CHECK_DENSITY_2
BACKGROUND_PATTERN_CHECK_DENSITY_3
BACKGROUND_PATTERN_CHECK_DENSITY_4public void setActionLinkEnabled(boolean enable)
enable - Set to true to enable the action link, set to false to disable
the action link.public boolean isActionLinkEnabled()
public void setEasyWritingPadEnabled(boolean enable)
enable - Set to true to enable the easy writing mode, set to false to disable
the easy writing mode.public boolean isEasyWritingPadEnabled()
public boolean isCategoryFocused()