public final class SpenBulletParagraph extends SpenTextParagraphBase
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_CHECKER
The checker type.
|
static int |
TYPE_NONE
The default bullet type.
|
static int |
TYPE_SOLID_CIRCLE
The solid circle type.
|
TYPE_ALIGN, TYPE_BULLET, TYPE_LINE_SPACING| Constructor and Description |
|---|
SpenBulletParagraph()
Creates an SpenBulletParagraph instance.
|
SpenBulletParagraph(int startPosition,
int endPosition,
int type)
Creates an SpenBulletParagraph instance with the paragraph properties.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBulletType()
Gets the bullet type.
|
void |
setBulletType(int type)
Sets the bullet type.
|
getEnd, getStart, getType, setPositionpublic static final int TYPE_NONE
setBulletType(int),
getBulletType(),
Constant Field Valuespublic static final int TYPE_CHECKER
setBulletType(int),
getBulletType(),
Constant Field Valuespublic static final int TYPE_SOLID_CIRCLE
setBulletType(int),
getBulletType(),
Constant Field Valuespublic SpenBulletParagraph()
public SpenBulletParagraph(int startPosition,
int endPosition,
int type)
startPosition - The start position of paragraph. The position should not be negative number. The negative number will be ignored.endPosition - The end position of paragraph. The position should not be negative number. The negative number will be ignored.type - The bullet type.IndexOutOfBoundsException - If the endPosition is smaller than the startPosition.
If the expansionType is negative or lager than the SpenTextSpanBase.SPAN_EXCLUSIVE_INCLUSIVE.IllegalArgumentException - If the type is not TYPE_NONE and TYPE_CHECKER, TYPE_SOLID_CIRCLE.public void setBulletType(int type)
type - The bullet type.IllegalArgumentException - If the type is not TYPE_NONE and TYPE_CHECKER, TYPE_SOLID_CIRCLE.getBulletType(),
TYPE_NONE,
TYPE_CHECKER,
TYPE_SOLID_CIRCLEpublic int getBulletType()
setBulletType(int),
TYPE_NONE,
TYPE_CHECKER,
TYPE_SOLID_CIRCLE