public class TextStyle extends Object
Change the visual style of the text for an item in the project view.
Constructor and Description |
---|
TextStyle()
Initializes a new instance of the
TextStyle class. |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
Gets background color of the text style.
|
int |
getBackgroundPattern()
Gets background pattern of the text style.
|
Color |
getColor()
Gets color of the text.
|
String |
getFontFamily()
Returns the font family of the text style.
|
int |
getFontStyle()
|
int |
getItemType()
Gets
TextItemType of the text style. |
float |
getSizeInPoints()
Gets size in points of the text style font.
|
void |
setBackgroundColor(Color value)
Sets background color of the text style.
|
void |
setBackgroundPattern(int value)
Sets background pattern of the text style.
|
void |
setColor(Color value)
Sets color of the text.
|
void |
setFontFamily(String familyName)
Sets the font family of the text style.
|
void |
setFontStyle(int value)
|
void |
setItemType(int value)
Sets
TextItemType of the text style. |
void |
setSizeInPoints(float value)
Sets size in points of the text style font.
|
public TextStyle()
Initializes a new instance of the TextStyle
class.
public final Color getBackgroundColor()
Gets background color of the text style.
Color
(getColor()
/setColor(Color)
).
public final void setBackgroundColor(Color value)
Sets background color of the text style.
Color
(getColor()
/setColor(Color)
).
value
- background color of the text style.public final int getBackgroundPattern()
Gets background pattern of the text style.
BackgroundPattern
(getBackgroundPattern()
/setBackgroundPattern(int)
).
public final void setBackgroundPattern(int value)
Sets background pattern of the text style.
BackgroundPattern
(getBackgroundPattern()
/setBackgroundPattern(int)
).
value
- background pattern of the text style.public final Color getColor()
Gets color of the text.
public final void setColor(Color value)
Sets color of the text.
value
- color of the text.public final int getFontStyle()
Gets FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.
FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.public final void setFontStyle(int value)
Sets FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.
value
- FontStyle
(getFontStyle()
/setFontStyle(int)
) of the text style font.public int getItemType()
Gets TextItemType
of the text style.
TextItemType
of the text style.public void setItemType(int value)
Sets TextItemType
of the text style.
value
- TextItemType
of the text style.public final float getSizeInPoints()
Gets size in points of the text style font.
public final void setSizeInPoints(float value)
Sets size in points of the text style font.
value
- size in points of the text style font.public final String getFontFamily()
String
).public final void setFontFamily(String familyName)
familyName
- the font family of the text style (String
).