public class TextStyle
extends java.lang.Object
Constructor and Description |
---|
TextStyle()
Der Standartkonstruktor benutzt die Defaultwerte fü die Schift und
die Farben definiert von Jameica
|
TextStyle(org.eclipse.swt.graphics.Font font,
int alignment,
org.eclipse.swt.graphics.Color textColor,
org.eclipse.swt.graphics.Color backgroundColor)
Ein Konstruktor bei dem alle Scrifteigenschaften angegeben werden.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
org.eclipse.swt.graphics.Color |
getBackgroundColor() |
org.eclipse.swt.graphics.Font |
getFont() |
org.eclipse.swt.graphics.Color |
getTextColor() |
void |
setAlignment(int alignment)
Setzt die Textausrichtung.
|
void |
setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor) |
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setTextColor(org.eclipse.swt.graphics.Color textColor) |
public TextStyle()
public TextStyle(org.eclipse.swt.graphics.Font font, int alignment, org.eclipse.swt.graphics.Color textColor, org.eclipse.swt.graphics.Color backgroundColor)
font
- Der Schrifttypalignment
- Die TextausrichtungtextColor
- die TextfarbebackgroundColor
- Die Hindergrundfarbepublic int getAlignment()
public org.eclipse.swt.graphics.Color getBackgroundColor()
public org.eclipse.swt.graphics.Font getFont()
public org.eclipse.swt.graphics.Color getTextColor()
public void setAlignment(int alignment)
alignment
- die Textausrichtung. Erlaubte Werte: SWT.LEFT, SWT.CENTER und
SWT.RIGHT. Bei Eingabe anderer Werte wir die Ausrichtung auf
SWT.LEFT gesetzt.public void setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor)
backgroundColor
- das zu setzende Objekt backgroundColorpublic void setFont(org.eclipse.swt.graphics.Font font)
font
- das zu setzende Objekt fontpublic void setTextColor(org.eclipse.swt.graphics.Color textColor)
textColor
- das zu setzende Objekt textColor