public static class TextBuilder.TextBuilderRegion
extends java.lang.Object
Constructor and Description |
---|
TextBuilderRegion()
Constructor of the
TextBuilder.TextBuilderRegion class. |
Modifier and Type | Method and Description |
---|---|
int |
getStart()
Get start offset of the region in the text.
|
TextStyle |
getStyle()
Get the text style of the region in the text.
|
TextBuilder.TextBuilderRegion |
setBackground(Color col)
Set the background color of the text for the region.
|
TextBuilder.TextBuilderRegion |
setFont(Font font)
Set the font for the region.
|
TextBuilder.TextBuilderRegion |
setForeground(Color col)
Set the foreground color of the text for the region.
|
TextBuilder.TextBuilderRegion |
setStart(int start)
Assign a start to the partial region style.
|
TextBuilder.TextBuilderRegion |
setStrikeOut(boolean value,
Color col)
Set strikeout for the region.
|
TextBuilder.TextBuilderRegion |
setStyle(TextStyle style)
Assign a style to the region of text.
|
TextBuilder.TextBuilderRegion |
setUnderline(Color col)
Set the underline color for the region.
|
TextBuilder.TextBuilderRegion |
setUnderline(UnderlineStyle uStyle,
Color col)
Set the underline style for the region.
|
public TextBuilderRegion()
TextBuilder.TextBuilderRegion
class.public int getStart()
public TextStyle getStyle()
null
for the default style.public TextBuilder.TextBuilderRegion setStyle(TextStyle style)
style
- Style to assign.public TextBuilder.TextBuilderRegion setStart(int start)
start
- New start offset of the region in the text.public TextBuilder.TextBuilderRegion setUnderline(UnderlineStyle uStyle, Color col)
uStyle
- Underline style to assign. null
means disable
underline.col
- Color of the underline, null
means skip setting
the color.public TextBuilder.TextBuilderRegion setUnderline(Color col)
col
- Color of the underline, null
means skip setting
the color.public TextBuilder.TextBuilderRegion setStrikeOut(boolean value, Color col)
value
- Enable or disable strikeout.col
- Color of the strikeout, if enabled. null
means
skip setting of the color.public TextBuilder.TextBuilderRegion setForeground(Color col)
col
- Foreground color to set. null
means skip setting
of the color.public TextBuilder.TextBuilderRegion setBackground(Color col)
col
- Background color to set. null
means skip setting
of the color.public TextBuilder.TextBuilderRegion setFont(Font font)
font
- Font to set.