|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.graphics.TextStyle
TextStyle
defines a set of styles that can be applied
to a range of text.
The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of the class in hashed collections, do not modify these fields after the object has been inserted.
Application code does not need to explicitly release the
resources managed by each instance when those instances are no longer
required, and thus no dispose()
method is provided.
TextLayout
,
Font
,
Color
Field Summary | |
---|---|
Color |
background
the background of the style |
Font |
font
the font of the style |
Color |
foreground
the foreground of the style |
boolean |
strikeout
the strikeout flag of the style |
boolean |
underline
the underline flag of the style |
Constructor Summary | |
---|---|
TextStyle(Font font,
Color foreground,
Color background)
Create a new text style with the specified font, foreground and background. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
hashCode()
Returns an integer hash code for the receiver. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public Font font
public Color foreground
public Color background
public boolean underline
public boolean strikeout
Constructor Detail |
public TextStyle(Font font, Color foreground, Color background)
font
- the font of the style, null
if noneforeground
- the foreground color of the style, null
if nonebackground
- the background color of the style, null
if noneMethod Detail |
public boolean equals(Object object)
object
- the object to compare with this object
true
if the object is the same as this object and false
otherwisehashCode()
public int hashCode()
true
when passed to
equals
must return the same value for this
method.
equals(Object)
public String toString()
RGB
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.