org.eclipse.xtext.ui.editor.utils
Class TextStyle
java.lang.Object
org.eclipse.xtext.ui.editor.utils.TextStyle
public class TextStyle
- extends java.lang.Object
- Author:
- Dennis Hübner - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FONT_STYLE
public static final int DEFAULT_FONT_STYLE
- See Also:
- Constant Field Values
TextStyle
public TextStyle()
getColor
public org.eclipse.swt.graphics.RGB getColor()
- Returns:
- the color
setColor
public void setColor(org.eclipse.swt.graphics.RGB rgb)
- Parameters:
color
- the color to set
getFontData
public org.eclipse.swt.graphics.FontData[] getFontData()
- Returns:
- the fontData
setFontData
public void setFontData(org.eclipse.swt.graphics.FontData... fontData)
- Parameters:
fontData
- the fontData to set
setBackgroundColor
public void setBackgroundColor(org.eclipse.swt.graphics.RGB backgroundColor)
- Parameters:
backgroundColor
- the backgroundColor to set
getBackgroundColor
public org.eclipse.swt.graphics.RGB getBackgroundColor()
- Returns:
- the backgroundColor
getStyle
public int getStyle()
- Returns:
copy
public TextStyle copy()
setStyle
public void setStyle(int style)
- Parameters:
style
-