public final class SpenItalicSpan 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 |
|---|
SpenItalicSpan()
Creates an SpenItalicSpan instance.
|
SpenItalicSpan(int startPosition,
int endPosition,
int expansionType,
boolean isItalic)
Creates an SpenItalicSpan instance with the span properties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItalicStyleEnabled()
Gets the italic property.
|
void |
setItalicStyleEnabled(boolean enabled)
Sets the italic property.
|
getEnd, getExpansion, getStart, getType, setExpansion, setPositionpublic SpenItalicSpan()
public SpenItalicSpan(int startPosition,
int endPosition,
int expansionType,
boolean isItalic)
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.isItalic - Enable italic 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.