|
|
||||||||||
| 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 none
public 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.BOLD| Method Detail |
public boolean equals(Object object)
equals in class Objectobject - the object to compare with this object
Object.hashCode(),
java.util.Hashtablepublic int hashCode()
hashCode in class Objectjava.lang.Object#equals(java.lang.Object),
java.util.Hashtablepublic boolean isUnstyled()
public boolean similarTo(StyleRange style)
public Object clone()
clone in class Objectjava.lang.Cloneablepublic String toString()
toString in class Object
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||