|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.swt.custom.StyleRange
Safe:
Field Summary | |
Color |
background
Enabled: |
int |
fontStyle
Enabled: |
Color |
foreground
Enabled: |
int |
length
Enabled: |
int |
start
Enabled: |
Constructor Summary | |
StyleRange()
Enabled: |
|
StyleRange(int start,
int length,
Color foreground,
Color background)
Enabled: Create a new style range. |
|
StyleRange(int start,
int length,
Color foreground,
Color background,
int fontStyle)
Enabled: Create a new style range. |
Method Summary | |
Object |
clone()
Suppressed: Answers a new StyleRange with the same values as this StyleRange. |
boolean |
equals(Object object)
Suppressed: Compare the specified object to this StyleRange and answer if the two are equal. |
int |
hashCode()
Suppressed: Returns an integer hash code for the receiver. |
boolean |
isUnstyled()
Enabled: Returns whether or not the receiver is unstyled (i.e., does not have any style attributes specified). |
boolean |
similarTo(StyleRange style)
Enabled: Compares the specified object to this StyleRange and answer if the two are similar. |
String |
toString()
Suppressed: Answers a string description of the receiver. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public int start
public int length
public Color foreground
public Color background
public int fontStyle
Constructor Detail |
public StyleRange()
public StyleRange(int start, int length, Color foreground, Color background)
start
- start offset of the stylelength
- length of the styleforeground
- foreground color of the style, null if nonebackground
- background color of the style, null if nonepublic StyleRange(int start, int length, Color foreground, Color background, int fontStyle)
start
- start offset of the stylelength
- length of the styleforeground
- foreground color of the style, null if nonebackground
- background color of the style, null if nonefontStyle
- font style of the style, may be SWT.NORMAL or SWT.BOLDMethod Detail |
public boolean equals(Object object)
equals
in class Object
object
- the object to compare with this object
Object.hashCode()
,
java.util.Hashtable
public int hashCode()
hashCode
in class Object
java.lang.Object#equals(java.lang.Object)
,
java.util.Hashtable
public boolean isUnstyled()
public boolean similarTo(StyleRange style)
public Object clone()
clone
in class Object
java.lang.Cloneable
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |