|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.TextAttribute
Description of textual attributes such as color and style. Text attributes are considered value objects.
Constructor Summary | |
TextAttribute(Color foreground)
Creates a text attribute for the given foreground color, no background color and with the SWT normal style. |
|
TextAttribute(Color foreground,
Color background,
int style)
Creates a text attribute with the given colors and style. |
Method Summary | |
boolean |
equals(Object object)
|
Color |
getBackground()
Returns the attribute's background color. |
Color |
getForeground()
Returns the attribute's foreground color. |
int |
getStyle()
Returns the attribute's style. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextAttribute(Color foreground, Color background, int style)
foreground
- the foreground colorbackground
- the background colorstyle
- the stylepublic TextAttribute(Color foreground)
foreground
- the foreground colorMethod Detail |
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Color getForeground()
public Color getBackground()
public int getStyle()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |