|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.util.TextBuilder.TextBuilderRegion
public static class TextBuilder.TextBuilderRegion
Inner class for storing the partial region styles.
Field Summary | |
---|---|
private int |
start
Start offset of the region in the text. |
private TextStyle |
style
Current style of the region, null means default style. |
Constructor Summary | |
---|---|
TextBuilder.TextBuilderRegion()
Constructor of the TextBuilder.TextBuilderRegion class. |
Method Summary | |
---|---|
private void |
ensureStyle()
Ensure a non-default style is available for modification. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TextStyle style
null
means default style.
private int start
Constructor Detail |
---|
public TextBuilder.TextBuilderRegion()
TextBuilder.TextBuilderRegion
class.
Method Detail |
---|
public int getStart()
public TextStyle getStyle()
null
for the default style.private void ensureStyle()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |