public final class SpenObjectTextBox extends SpenObjectShape
SpenObjectShape since 4.0.0.| Modifier and Type | Class and Description |
|---|---|
static class |
SpenObjectTextBox.AlignParagraphInfo
Deprecated.
As of 4.0.0, replaced by
SpenAlignmentParagraph. |
static class |
SpenObjectTextBox.BackgroundColorSpanInfo
Deprecated.
As of 4.0.0, Not supported anymore.
|
static class |
SpenObjectTextBox.BoldStyleSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenBoldSpan. |
static class |
SpenObjectTextBox.FontNameSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenFontNameSpan. |
static class |
SpenObjectTextBox.FontSizeSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenFontSizeSpan. |
static class |
SpenObjectTextBox.ForegroundColorSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenForegroundColorSpan. |
static class |
SpenObjectTextBox.HyperTextStyleSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan. |
static class |
SpenObjectTextBox.ItalicStyleSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenItalicSpan. |
static class |
SpenObjectTextBox.LineSpacingParagraphInfo
Deprecated.
As of 4.0.0, replaced by
SpenLineSpacingParagraph. |
static class |
SpenObjectTextBox.TextDirectionSpanInfo
Deprecated.
As of 4.0.0, Note supported anymore.
|
static class |
SpenObjectTextBox.TextParagraphInfo
Deprecated.
As of 4.0.0, replaced by
SpenTextParagraphBase. |
static class |
SpenObjectTextBox.TextSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenTextSpanBase. |
static class |
SpenObjectTextBox.UnderlineStyleSpanInfo
Deprecated.
As of 4.0.0, replaced by
SpenUnderlineSpan. |
SpenObjectShapeBase.ConnectedInfo| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_BOTH
Deprecated.
As of 4.0.0, replaced by
SpenAlignmentParagraph.ALIGN_BOTH. |
static int |
ALIGN_CENTER
Deprecated.
As of 4.0.0, replaced by
SpenAlignmentParagraph.ALIGN_CENTER. |
static int |
ALIGN_LEFT
Deprecated.
As of 4.0.0, replaced by
SpenAlignmentParagraph.ALIGN_LEFT. |
static int |
ALIGN_RIGHT
Deprecated.
As of 4.0.0, replaced by
SpenAlignmentParagraph.ALIGN_RIGHT. |
static int |
BORDER_TYPE_DOT
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
static int |
BORDER_TYPE_NONE
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
static int |
BORDER_TYPE_SHADOW
Deprecated.
As of 4.0.0, do not support.
|
static int |
BORDER_TYPE_SQUARE
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
static int |
DIRECTION_LEFT_TO_RIGHT
Deprecated.
As of 4.0.0, not supported anymore.
|
static int |
DIRECTION_RIGHT_TO_LEFT
Deprecated.
As of 4.0.0, not supported anymore.
|
static int |
HYPER_TEXT_ADDRESS
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_ADDRESS. |
static int |
HYPER_TEXT_DATE
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_DATE. |
static int |
HYPER_TEXT_EMAIL
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_EMAIL. |
static int |
HYPER_TEXT_TEL
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_TEL. |
static int |
HYPER_TEXT_UNKNOWN
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_UNKNOWN. |
static int |
HYPER_TEXT_URL
Deprecated.
As of 4.0.0, replaced by
SpenHyperTextSpan.TYPE_URL. |
static int |
LINE_SPACING_PERCENT
Deprecated.
As of 4.0.0, replaced by
SpenLineSpacingParagraph.TYPE_PERCENT. |
static int |
LINE_SPACING_PIXEL
Deprecated.
As of 4.0.0, replaced by
SpenLineSpacingParagraph.TYPE_PIXEL. |
static int |
STYLE_BOLD
Deprecated.
As of 4.0.0, replaced by
SpenBoldSpan. |
static int |
STYLE_ITALIC
Deprecated.
As of 4.0.0, replaced by
SpenItalicSpan. |
static int |
STYLE_MASK
Deprecated.
As of 4.0.0, not supported anymore.
|
static int |
STYLE_NONE
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
static int |
STYLE_UNDERLINE
Deprecated.
As of 4.0.0, replaced by
SpenUnderlineSpan. |
AUTO_FIT_BOTH, AUTO_FIT_HORIZONTAL, AUTO_FIT_NONE, AUTO_FIT_VERTICAL, CURSOR_POS_END, CURSOR_POS_START, ELLIPSIS_DOTS, ELLIPSIS_NONE, ELLIPSIS_TRIANGLE, FILL_TYPE_DARKEN, FILL_TYPE_DARKENLESS, FILL_TYPE_LIGHTEN, FILL_TYPE_LIGHTENLESS, FILL_TYPE_NORMAL, FILL_TYPE_TRANSPARENT, GRAVITY_BOTTOM, GRAVITY_CENTER, GRAVITY_TOP, IME_ACTION_DONE, IME_ACTION_GO, IME_ACTION_NEXT, IME_ACTION_NONE, IME_ACTION_PREVIOUS, IME_ACTION_SEARCH, IME_ACTION_SEND, IME_ACTION_UNSPECIFIED, INPUT_TYPE_DATETIME, INPUT_TYPE_NONE, INPUT_TYPE_NUMBER, INPUT_TYPE_PHONE, INPUT_TYPE_TEXT, TYPE_10_POINT_STAR, TYPE_32_POINT_STAR, TYPE_4_POINT_STAR, TYPE_5_POINT_STAR, TYPE_8_POINT_STAR, TYPE_ARC, TYPE_BENT_ARROW, TYPE_BENT_UP_ARROW, TYPE_BEVEL, TYPE_BLOCK_ARC, TYPE_CAN, TYPE_CHEVRON, TYPE_CHORD, TYPE_CIRCULAR_ARROW, TYPE_CROSS, TYPE_CUBE, TYPE_CURVED_DOWN_ARROW, TYPE_CURVED_LEFT_ARROW, TYPE_CURVED_RIGHT_ARROW, TYPE_CURVED_UP_ARROW, TYPE_DIAMOND, TYPE_DONUT, TYPE_DOUBLE_WAVE, TYPE_DOWN_ARROW, TYPE_DOWN_ARROW_CALLOUT, TYPE_DOWN_RIBBON, TYPE_EXPLOSION_1, TYPE_EXPLOSION_2, TYPE_FLOWCHART_CARD, TYPE_FLOWCHART_DELAY, TYPE_FLOWCHART_DISPLAY, TYPE_FLOWCHART_DOCUMENT, TYPE_FLOWCHART_MANUAL_INPUT, TYPE_FLOWCHART_OFF_PAGE_CONNECTOR, TYPE_FLOWCHART_PREDEFINED_PROCESS, TYPE_FLOWCHART_PUNCHED_TAPE, TYPE_FLOWCHART_SEQUENTIAL_ACCESS_STORAGE, TYPE_FLOWCHART_STORED_DATA, TYPE_FLOWCHART_TERMINATOR, TYPE_FOLDED_CORNER, TYPE_HEART, TYPE_HEXAGON, TYPE_HORIZONTAL_SCROLL, TYPE_L_SHAPE, TYPE_LEFT_ARROW, TYPE_LEFT_ARROW_CALLOUT, TYPE_LEFT_BRACE, TYPE_LEFT_BRACKET, TYPE_LEFT_RIGHT_ARROW, TYPE_LEFT_RIGHT_ARROW_CALLOUT, TYPE_LEFT_RIGHT_UP_ARROW, TYPE_LEFT_UP_ARROW, TYPE_LIGHTNING_BOLT, TYPE_MOON, TYPE_NO_SYMBOL, TYPE_NOTCHED_RIGHT_ARROW, TYPE_OVAL, TYPE_OVAL_CALLOUT, TYPE_PARALLELOGRAM, TYPE_PENTAGON, TYPE_PIE, TYPE_PLAQUE, TYPE_QUAD_ARROW, TYPE_QUAD_ARROW_CALLOUT, TYPE_RECTANGLE, TYPE_RECTANGULAR_CALLOUT, TYPE_REGULAR_PENTAGON, TYPE_RIGHT_ARROW, TYPE_RIGHT_ARROW_CALLOUT, TYPE_RIGHT_BRACE, TYPE_RIGHT_BRACKET, TYPE_RIGHT_TRIANGLE, TYPE_ROUNDED_RECTANGLE, TYPE_ROUNDED_RECTANGULAR_CALLOUT, TYPE_SMILEY_FACE, TYPE_STRIPED_RIGHT_ARROW, TYPE_SUN, TYPE_TRAPEZOID, TYPE_TRIANGLE, TYPE_U_TURN_ARROW, TYPE_UNKNOWN, TYPE_UP_ARROW, TYPE_UP_ARROW_CALLOUT, TYPE_UP_DOWN_ARROW, TYPE_UP_DOWN_ARROW_CALLOUT, TYPE_UP_RIBBON, TYPE_VERTICAL_SCROLL, TYPE_WAVECONNECTION_MODE_LOOSELY_COUPLED, CONNECTION_MODE_TIGHTLY_COUPLEDOBJECT_MINIMUM_SIZE, RESIZE_OPTION_DISABLE, RESIZE_OPTION_FREE, RESIZE_OPTION_KEEP_RATIO, SPEN_INFINITY_FLOAT, SPEN_INFINITY_INT, TYPE_CONTAINER, TYPE_IMAGE, TYPE_LINE, TYPE_NONE, TYPE_SHAPE, TYPE_STROKE, TYPE_TEXT_BOX| Constructor and Description |
|---|
SpenObjectTextBox()
Creates an SpenObjectTextBox instance.
|
SpenObjectTextBox(boolean isTemplateObject)
Creates an SpenObjectTextBox instance with the specified template status.
|
SpenObjectTextBox(String text)
Creates an SpenObjectTextBox instance with the specified text.
|
SpenObjectTextBox(String text,
ArrayList<SpenObjectTextBox.TextSpanInfo> span)
Deprecated.
As of 4.0.0, replaced by
SpenObjectTextBox(String, ArrayList). |
SpenObjectTextBox(String text,
ArrayList<SpenObjectTextBox.TextSpanInfo> span,
ArrayList<SpenObjectTextBox.TextParagraphInfo> paras)
Deprecated.
As of 4.0.0, replaced by
SpenObjectTextBox(String, ArrayList, ArrayList). |
SpenObjectTextBox(String text,
ArrayList<SpenObjectTextBox.TextSpanInfo> span,
ArrayList<SpenObjectTextBox.TextParagraphInfo> paras,
boolean isTemplateObject)
Deprecated.
As of 4.0.0, replaced by
SpenObjectTextBox(String, ArrayList, ArrayList, boolean). |
SpenObjectTextBox(String text,
ArrayList<SpenObjectTextBox.TextSpanInfo> span,
boolean isTemplateObject)
Deprecated.
As of 4.0.0, replaced by
SpenObjectTextBox(String, ArrayList, boolean). |
SpenObjectTextBox(String text,
boolean isTemplateObject)
Creates an SpenObjectTextBox instance with the specified text and template mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendParagraph(SpenObjectTextBox.TextParagraphInfo paragraph)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.appendTextParagraph(SpenTextParagraphBase). |
void |
appendSpan(SpenObjectTextBox.TextSpanInfo span)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.appendTextSpan(SpenTextSpanBase). |
void |
clearChangedFlag()
Clear the set changed flag.
The changed flag is set when object data is changed using the API. If this object is saved by SpenPageDoc, clear the flag. |
void |
copy(SpenObjectBase source)
Copy data from the textbox object.
|
ArrayList<SpenObjectTextBox.TextParagraphInfo> |
findParagraphs(int startPos,
int endPos)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.findTextParagraph(int, int). |
ArrayList<SpenObjectTextBox.TextSpanInfo> |
findSpans(int startPos,
int endPos)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.findTextSpan(int, int). |
int |
getBackgroundColor()
Get the background color of SpenObjectTextBox.
|
int |
getBorderType()
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
int |
getBulletType()
Get the bullet style for normal format text.
|
int |
getCursorPos()
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.getCursorPosition(). |
RectF |
getDrawnRect()
Get the region that the rectangle takes up in the viewport.
|
String |
getFont()
Get the font name for normal format text.
The default font is null. For rich format text, use the span classes to get the font attributes. This method gets the font name where the cursor is positioned. |
float |
getFontSize()
Get the font size for normal format text.
The default size is 10. |
int |
getLineBorderColor()
Deprecated.
As of 4.0.0, replaced by
SpenLineColorEffect. |
float |
getLineBorderWidth()
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
ArrayList<SpenObjectTextBox.TextParagraphInfo> |
getParagraph()
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.getTextParagraph(). |
ArrayList<SpenObjectTextBox.TextSpanInfo> |
getSpan()
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.getTextSpan(). |
int |
getTextAlignment()
Get the text alignment for normal format text.
For rich format text, use the span classes to get the text attributes. This method gets the text alignment where the cursor is positioned. |
int |
getTextColor()
Get the font color of the normal format text.
For rich format text, use the span classes to set the font attributes. This method gets the text color where the cursor is positioned. |
int |
getTextDirection()
Deprecated.
As of 4.0.0, not supported anymore.
|
float |
getTextLineSpacing()
Get the line spacing value for normal format text.
For rich format text, use the span classes to get the text attributes. This method gets the text line spacing value where the cursor is positioned. |
int |
getTextLineSpacingType()
Get the line spacing type for normal format text.
For rich format text, use the span classes to get the text attributes. This method gets the text line spacing type where the cursor is positioned. |
int |
getTextStyle()
Get the text style for normal format text.
For rich format text, use the span classes to get the text attributes. This method gets the text style where the cursor is positioned. |
boolean |
isChanged()
Check if the object is changed.
The changed flag is set when object data is changed using the API. If this object is saved by SpenPageDoc, clear the flag. |
boolean |
isReadOnlyEnabled()
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.isTextReadOnlyEnabled(). |
void |
removeParagraph(SpenObjectTextBox.TextParagraphInfo paragraph)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.removeTextParagraph(SpenTextParagraphBase). |
void |
removeSpan(SpenObjectTextBox.TextSpanInfo span)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.removeTextSpan(SpenTextSpanBase). |
void |
setBackgroundColor(int color)
Set the background color to fill the SpenObjectTextBox area.
|
void |
setBorderType(int type)
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
void |
setBulletType(int type)
Set the specified bullet style for normal format text.
The default value is BULLET_TYPE_NONE. If you use this method for rich format text, the existing bullets of text are replaced with the new bullet type. |
void |
setCursorPos(int position)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.setCursorPosition(int). |
void |
setFont(String font)
Set the font name for normal format text.
The default font is null. For rich format text, use the span classes to set the font attributes. If you use this method for rich format text, the existing fonts of text are replaced with the new font. |
void |
setFontSize(float size)
Set the specified font size for normal format text.
The default size is 10. |
void |
setLineBorderColor(int color)
Deprecated.
As of 4.0.0, replaced by
SpenLineColorEffect. |
void |
setLineBorderWidth(float width)
Deprecated.
As of 4.0.0, replaced by
SpenLineStyleEffect. |
void |
setParagraph(ArrayList<SpenObjectTextBox.TextParagraphInfo> paragraph)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.setTextParagraph(ArrayList). |
void |
setReadOnlyEnabled(boolean enable)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.setTextReadOnlyEnabled(boolean). |
void |
setRect(RectF rect,
boolean regionOnly)
Set the specified rectangle of the region.
Object forwards the regionOnly parameter to ObjectBase. |
void |
setSpan(ArrayList<SpenObjectTextBox.TextSpanInfo> span)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.setTextSpan(ArrayList). |
void |
setTextAlignment(int align)
Set the specified text alignment option for normal format text.
For rich format text, use the span classes to set the text attributes. If you use this method for rich format text, the existing alignments of text are replaced with the new alignment type. |
void |
setTextColor(int color)
Set the specified font color for normal format text.
For rich format text, use the span classes to set the font attributes. If you use this method for rich format text, the existing text colors are replaced with new text color. |
void |
setTextDirection(int direction)
Deprecated.
As of 4.0.0, not supported anymore.
|
void |
setTextLineSpacingInfo(int type,
float lineSpacing)
Set the specified line spacing type and value for normal format text.
If you use this method for rich format text, its line space and paragraph information are deleted. If you use this method for rich format text, the line spacing information of text are replaced with the new line spacing information. |
void |
setTextStyle(int style)
Set the specified font style for normal format text.
For rich format text, use the span classes to set the text attributes. |
void |
setVereticalPan(float position)
Deprecated.
As of 4.0.0, replaced by
SpenObjectShape.setVerticalPan(float). |
appendTextParagraph, appendTextSpan, contain, findTextParagraph, findTextSpan, getAutoFitOption, getBottomBaseMargin, getBottomMargin, getControlPoint, getControlPoint, getControlPointCount, getCursorPosition, getEllipsisType, getFillEffect, getFillEffectType, getFillPath, getFillPath, getFillPathCount, getGravity, getHintText, getHintTextColor, getHintTextFontSize, getIMEActionType, getLeftBaseMargin, getLeftMargin, getPath, getPath, getRightBaseMargin, getRightMargin, getShapeType, getText, getTextInputType, getTextParagraph, getTextSpan, getTopBaseMargin, getTopMargin, getVerticalPan, insertText, insertTextAtCursor, isFlippedHorizontally, isFlippedVertically, isHintTextEnabled, isTextReadOnlyEnabled, moveControlPoint, parseHyperText, removeAllText, removeText, removeTextParagraph, removeTextSpan, replaceText, resetFillEffect, setAutoFitOption, setCursorPosition, setEllipsisType, setFillEffect, setGravity, setHintText, setHintTextColor, setHintTextEnabled, setHintTextFontSize, setIMEActionType, setMargin, setShapeType, setText, setTextInputType, setTextParagraph, setTextReadOnlyEnabled, setTextSpan, setVerticalPangetConnectedInfoCount, getConnectionMode, getLineColorEffect, getLineStyleEffect, getMagneticConnectionInfo, getMagneticConnectionPoint, getMagneticConnectionPoint, getMagneticConnectionPointCount, getNearestMagneticConnectionPointIndex, resetLineColorEffect, resetLineStyleEffect, setConnectionMode, setLineColorEffect, setLineStyleEffectattachFile, detachFile, equals, getAttachedFile, getExtraDataByteArray, getExtraDataInt, getExtraDataString, getExtraDataStringArray, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getRect, getResizeOption, getRotation, getRuntimeHandle, getSorDataInt, getSorDataString, getSorInfo, getSorPackageLink, getTemplateProperty, getType, getUserId, hasExtraDataByteArray, hasExtraDataInt, hasExtraDataString, hasExtraDataStringArray, hashCode, hasSorDataInt, hasSorDataString, isFlipEnabled, isMovable, isOutOfViewEnabled, isRecorded, isRotatable, isSelectable, isVisible, removeExtraDataByteArray, removeExtraDataInt, removeExtraDataString, removeExtraDataStringArray, removeSorDataInt, removeSorDataString, setExtraDataByteArray, setExtraDataInt, setExtraDataString, setExtraDataStringArray, setFlipEnabled, setMaxSize, setMinSize, setMovable, setOutOfViewEnabled, setRecorded, setResizeOption, setRotatable, setRotation, setSelectable, setSorDataInt, setSorDataString, setSorInfo, setSorPackageLink, setUserId, setVisibilitypublic static final int BORDER_TYPE_NONE
SpenLineStyleEffect.setBorderType(int),
getBorderType(),
Constant Field Valuespublic static final int BORDER_TYPE_SQUARE
SpenLineStyleEffect.setBorderType(int),
getBorderType(),
Constant Field Valuespublic static final int BORDER_TYPE_SHADOW
setBorderType(int),
getBorderType(),
Constant Field Valuespublic static final int BORDER_TYPE_DOT
SpenLineStyleEffect.setBorderType(int),
getBorderType(),
Constant Field Valuespublic static final int STYLE_NONE
SpenLineStyleEffect.setBorderType(int),
getBorderType(),
Constant Field Valuespublic static final int STYLE_BOLD
SpenBoldSpan.setTextStyle(int),
Constant Field Valuespublic static final int STYLE_ITALIC
SpenItalicSpan.setTextStyle(int),
Constant Field Valuespublic static final int STYLE_UNDERLINE
SpenUnderlineSpan.setTextStyle(int),
Constant Field Valuespublic static final int STYLE_MASK
setTextStyle(int),
Constant Field Valuespublic static final int DIRECTION_LEFT_TO_RIGHT
public static final int DIRECTION_RIGHT_TO_LEFT
public static final int ALIGN_LEFT
SpenAlignmentParagraph.ALIGN_LEFT.setTextAlignment(int),
Constant Field Valuespublic static final int ALIGN_RIGHT
SpenAlignmentParagraph.ALIGN_RIGHT.setTextAlignment(int),
Constant Field Valuespublic static final int ALIGN_CENTER
SpenAlignmentParagraph.ALIGN_CENTER.setTextAlignment(int),
Constant Field Valuespublic static final int ALIGN_BOTH
SpenAlignmentParagraph.ALIGN_BOTH.setTextAlignment(int),
Constant Field Valuespublic static final int LINE_SPACING_PIXEL
SpenLineSpacingParagraph.TYPE_PIXEL.setTextLineSpacingInfo(int,float),
Constant Field Valuespublic static final int LINE_SPACING_PERCENT
SpenLineSpacingParagraph.TYPE_PERCENT.setTextLineSpacingInfo(int,float),
Constant Field Valuespublic static final int HYPER_TEXT_UNKNOWN
SpenHyperTextSpan.TYPE_UNKNOWN.public static final int HYPER_TEXT_EMAIL
SpenHyperTextSpan.TYPE_EMAIL.public static final int HYPER_TEXT_TEL
SpenHyperTextSpan.TYPE_TEL.public static final int HYPER_TEXT_URL
SpenHyperTextSpan.TYPE_URL.public static final int HYPER_TEXT_DATE
SpenHyperTextSpan.TYPE_DATE.public static final int HYPER_TEXT_ADDRESS
SpenHyperTextSpan.TYPE_ADDRESS.public SpenObjectTextBox()
public SpenObjectTextBox(boolean isTemplateObject)
isTemplateObject - If you set as true, this object becomes a template object.public SpenObjectTextBox(String text)
text - The setting default textSpenObjectShape.setText(String)public SpenObjectTextBox(String text, boolean isTemplateObject)
text - The setting default textisTemplateObject - If you set as true, this object becomes a template object.SpenObjectShape.setText(String)public SpenObjectTextBox(String text, ArrayList<SpenObjectTextBox.TextSpanInfo> span)
SpenObjectTextBox(String, ArrayList).text - textspan - span Information.public SpenObjectTextBox(String text, ArrayList<SpenObjectTextBox.TextSpanInfo> span, boolean isTemplateObject)
SpenObjectTextBox(String, ArrayList, boolean).text - textspan - span Information.isTemplateObject - If you set as true, this object becomes a template object.public SpenObjectTextBox(String text, ArrayList<SpenObjectTextBox.TextSpanInfo> span, ArrayList<SpenObjectTextBox.TextParagraphInfo> paras)
SpenObjectTextBox(String, ArrayList, ArrayList).text - textspan - span Information.paras - paragraph Information.public SpenObjectTextBox(String text, ArrayList<SpenObjectTextBox.TextSpanInfo> span, ArrayList<SpenObjectTextBox.TextParagraphInfo> paras, boolean isTemplateObject)
SpenObjectTextBox(String, ArrayList, ArrayList, boolean).text - textspan - span Information.paras - paragraph Information.isTemplateObject - If you set as true, this object becomes a template object.
This method is deprecated in version 4.0.0.public void setRect(RectF rect, boolean regionOnly)
regionOnly parameter to ObjectBase.setRect in class SpenObjectBaserect - The rectangle of region.regionOnly - Set to true to not allow the internal data to be changed, set to false to let rectangle change the
internal data.public void setCursorPos(int position)
SpenObjectShape.setCursorPosition(int).SpenObjectShape.setCursorPosition(int) instead.position - The cursor positionIllegalArgumentException - If position passed is negative or larger than the length of the entire text.
If the text of TextBox is NULL and position is not 0.public int getCursorPos()
SpenObjectShape.getCursorPosition().SpenObjectShape.getCursorPosition() instead.public void setSpan(ArrayList<SpenObjectTextBox.TextSpanInfo> span)
SpenObjectShape.setTextSpan(ArrayList).SpenObjectShape.setTextSpan(java.util.ArrayList<com.samsung.android.sdk.pen.document.textspan.SpenTextSpanBase>) instead.span - The text span information.public ArrayList<SpenObjectTextBox.TextSpanInfo> getSpan()
SpenObjectShape.getTextSpan().SpenObjectShape.getTextSpan() instead.public ArrayList<SpenObjectTextBox.TextSpanInfo> findSpans(int startPos, int endPos)
SpenObjectShape.findTextSpan(int, int).SpenObjectShape.findTextSpan(int, int) instead.startPos - The index of the first character for finding span information.endPos - The index of the last character for finding span information.public void removeSpan(SpenObjectTextBox.TextSpanInfo span)
SpenObjectShape.removeTextSpan(SpenTextSpanBase).SpenObjectShape.removeTextSpan(com.samsung.android.sdk.pen.document.textspan.SpenTextSpanBase) instead.span - The span instance.public void appendSpan(SpenObjectTextBox.TextSpanInfo span)
SpenObjectShape.appendTextSpan(SpenTextSpanBase).SpenObjectShape.appendTextSpan(com.samsung.android.sdk.pen.document.textspan.SpenTextSpanBase) instead.span - The span instance.public void setParagraph(ArrayList<SpenObjectTextBox.TextParagraphInfo> paragraph)
SpenObjectShape.setTextParagraph(ArrayList).SpenObjectShape.getTextParagraph() instead.paragraph - The text paragraph information.public ArrayList<SpenObjectTextBox.TextParagraphInfo> getParagraph()
SpenObjectShape.getTextParagraph().SpenObjectShape.getTextParagraph() instead.public ArrayList<SpenObjectTextBox.TextParagraphInfo> findParagraphs(int startPos, int endPos)
SpenObjectShape.findTextParagraph(int, int).SpenObjectShape.findTextParagraph(int, int) instead.startPos - The index of the first paragraph for finding paragraph information.endPos - The index of the end paragraph for finding paragraph information.public void removeParagraph(SpenObjectTextBox.TextParagraphInfo paragraph)
SpenObjectShape.removeTextParagraph(SpenTextParagraphBase).SpenObjectShape.removeTextParagraph(com.samsung.android.sdk.pen.document.textspan.SpenTextParagraphBase) instead.paragraph - The paragraph object to remove.public void appendParagraph(SpenObjectTextBox.TextParagraphInfo paragraph)
SpenObjectShape.appendTextParagraph(SpenTextParagraphBase).SpenObjectShape.appendTextParagraph(com.samsung.android.sdk.pen.document.textspan.SpenTextParagraphBase) instead.paragraph - The paragraph object to append.public void setLineBorderColor(int color)
SpenLineColorEffect.color - The ARGB8888 format color.public int getLineBorderColor()
SpenLineColorEffect.public void setLineBorderWidth(float width)
SpenLineStyleEffect.width - The border width in pixels.IllegalArgumentException - Thrown if width passed is less than 0.public float getLineBorderWidth()
SpenLineStyleEffect.public void setBorderType(int type)
SpenLineStyleEffect.BORDER_TYPE_NONEBORDER_TYPE_SQUAREBORDER_TYPE_SHADOWBORDER_TYPE_DOTtype - The border typeIllegalArgumentException - Thrown if type passed is invalid.public int getBorderType()
SpenLineStyleEffect.public void setReadOnlyEnabled(boolean enable)
SpenObjectShape.setTextReadOnlyEnabled(boolean).enable - Set to true to make the textbox read-only, set to false to not make the text box read-only.public boolean isReadOnlyEnabled()
SpenObjectShape.isTextReadOnlyEnabled().true, The ObjectTextBox is a
"read-only".public void setTextColor(int color)
color - The ARGB8888 format color.getTextColor()public int getTextColor()
setTextColor(int color)public void setBackgroundColor(int color)
color - The ARGB8888 format color.getBackgroundColor()public int getBackgroundColor()
setBackgroundColor(int color)public void setFontSize(float size)
size - The font size.IllegalArgumentException - If size is less than 0.getFontSize()public float getFontSize()
setFontSize(float)public void setFont(String font)
font - The font name.getFont()public String getFont()
setFont(String font)public void setTextDirection(int direction)
direction - direction.public int getTextDirection()
public void setTextStyle(int style)
text.setTextStyle(ObjectTextBox.STYLE_BOLD | ObjectTextBox.STYLE_UNDERLINE);
style - The text style.IllegalArgumentException - If style is invalid.getTextStyle()public int getTextStyle()
setTextStyle(int)public void setTextAlignment(int align)
align - The text alignment.IllegalArgumentException - If align is invalid.getTextAlignment(),
ALIGN_LEFT,
ALIGN_RIGHT,
ALIGN_CENTER,
ALIGN_BOTHpublic int getTextAlignment()
setTextAlignment(int),
ALIGN_LEFT,
ALIGN_RIGHT,
ALIGN_CENTER,
ALIGN_BOTHpublic void setTextLineSpacingInfo(int type,
float lineSpacing)
type - The text lineSpacing type. One of LINE_SPACING_PIXEL or LINE_SPACING_PERCENT.lineSpacing - The text lineSpacingIllegalArgumentException - If the type is not 0 or 1.IndexOutOfBoundsException - If the lineSpacing is negative, if type is LINE_SPACING_PIXEL. lineSpacing is negative or zero, if type is LINE_SPACING_PERCENT.getTextLineSpacingType()public int getTextLineSpacingType()
setTextLineSpacingInfo(int type, float lineSpacing)public float getTextLineSpacing()
setTextLineSpacingInfo(int type, float lineSpacing)public void setBulletType(int type)
type - The text bullet typeIndexOutOfBoundsException - Throw if type is out of rangegetBulletType()public int getBulletType()
setBulletType(int type)@Deprecated public void setVereticalPan(float position)
SpenObjectShape.setVerticalPan(float).position - The vertical pan position.public void clearChangedFlag()
SpenObjectBaseclearChangedFlag in class SpenObjectBasepublic boolean isChanged()
SpenObjectBaseisChanged in class SpenObjectBasetrue if object data is changed or created. Otherwise false.public RectF getDrawnRect()
SpenObjectBasegetDrawnRect in class SpenObjectBaseSpenObjectBase.getRect()public void copy(SpenObjectBase source)
copy in class SpenObjectShapeBasesource - The source object.SpenObjectShapeBase.copy(SpenObjectBase)