public final class SpenBoldSpan extends SpenTextSpanBase
SPAN_EXCLUSIVE_EXCLUSIVE, SPAN_EXCLUSIVE_INCLUSIVE, SPAN_INCLUSIVE_EXCLUSIVE, SPAN_INCLUSIVE_INCLUSIVE, TYPE_BACKGROUND_COLOR, TYPE_BOLD, TYPE_FONT_NAME, TYPE_FONT_SIZE, TYPE_FOREGROUND_COLOR, TYPE_HYPER_TEXT, TYPE_ITALIC, TYPE_NONE, TYPE_UNDERLINE| Constructor and Description |
|---|
SpenBoldSpan()
Creates an SpenBoldSpan instance.
|
SpenBoldSpan(int startPosition,
int endPosition,
int expansionType,
boolean isbold)
Creates an SpenBoldSpan instance with the span properties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBoldStyleEnabled()
Gets the bold property.
|
void |
setBoldStyleEnabled(boolean enabled)
Sets the bold property.
|
getEnd, getExpansion, getStart, getType, setExpansion, setPositionpublic SpenBoldSpan()
public SpenBoldSpan(int startPosition,
int endPosition,
int expansionType,
boolean isbold)
startPosition - The start position of span. The position should not be negative number. The negative number will be ignored.endPosition - The end position of span. The position should not be negative number. The negative number will be ignored.expansionType - The expansion type of span.isbold - Enable bold type or not.IndexOutOfBoundsException - If the endPosition is smaller than the startPosition.
If the expansionType is negative or lager than the SpenTextSpanBase.SPAN_EXCLUSIVE_INCLUSIVE.