public class SpenTextParagraphBase extends Object
SpenAlignmentParagraph, SpenBulletParagraph, SpenLineSpacingParagraph| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_ALIGN
The align paragraph.
|
static int |
TYPE_BULLET
The bullet paragraph.
|
static int |
TYPE_LINE_SPACING
The line spacing paragraph.
|
static int |
TYPE_NONE
The default type for paragraph.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEnd()
Return the end of the range of text to which the specified markup object is attached.
|
int |
getStart()
Return the beginning of the range of text to which the specified markup object is attached.
|
int |
getType()
Return the paragraph type.
The default type is TYPE_NONE |
void |
setPosition(int startPosition,
int endPosition)
Sets the start character paragraph and end paragraph position of Paragraph.
|
public static final int TYPE_NONE
SpenTextParagraphBase(int),
SpenTextParagraphBase(int, int, int),
Constant Field Valuespublic static final int TYPE_ALIGN
SpenAlignmentParagraph,
SpenTextParagraphBase(int),
SpenTextParagraphBase(int, int, int),
Constant Field Valuespublic static final int TYPE_LINE_SPACING
SpenLineSpacingParagraph,
SpenTextParagraphBase(int),
SpenTextParagraphBase(int, int, int),
Constant Field Valuespublic static final int TYPE_BULLET
SpenBulletParagraph,
SpenTextParagraphBase(int),
SpenTextParagraphBase(int, int, int),
Constant Field Valuespublic int getType()
TYPE_NONETYPE_NONE,
TYPE_ALIGN,
TYPE_BULLET,
TYPE_LINE_SPACINGpublic void setPosition(int startPosition,
int endPosition)
startPosition - start position. The position should not be negative number. The negative number will be ignored.endPosition - end position. The position should not be negative number. The negative number will be ignored.IndexOutOfBoundsException - If the startPosition is lager than endPosition.getStart(),
getEnd()public int getStart()
public int getEnd()