public class TextStyle
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_FONT_STYLE  | 
| Constructor and Description | 
|---|
TextStyle()  | 
| Modifier and Type | Method and Description | 
|---|---|
TextStyle | 
copy()
creates a new  
TextStyle instance and copies all the source fields | 
org.eclipse.swt.graphics.RGB | 
getBackgroundColor()  | 
org.eclipse.swt.graphics.RGB | 
getColor()  | 
org.eclipse.swt.graphics.FontData[] | 
getFontData()  | 
int | 
getStyle()  | 
void | 
setBackgroundColor(org.eclipse.swt.graphics.RGB backgroundColor)  | 
void | 
setColor(org.eclipse.swt.graphics.RGB color)  | 
void | 
setFontData(org.eclipse.swt.graphics.FontData... fontData)  | 
void | 
setStyle(int style)  | 
public static final int DEFAULT_FONT_STYLE
public org.eclipse.swt.graphics.RGB getColor()
public void setColor(org.eclipse.swt.graphics.RGB color)
color - the color to setpublic org.eclipse.swt.graphics.FontData[] getFontData()
public void setFontData(org.eclipse.swt.graphics.FontData... fontData)
fontData - the fontData to setpublic void setBackgroundColor(org.eclipse.swt.graphics.RGB backgroundColor)
backgroundColor - the backgroundColor to setpublic org.eclipse.swt.graphics.RGB getBackgroundColor()
public int getStyle()
public void setStyle(int style)
style - SWT style constantSWT