java.lang.Object
org.eclipse.swt.custom.StyleRange
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.swt.internal.CloneableCompatibility
- public class StyleRange
- extends java.lang.Object
- implements org.eclipse.swt.internal.CloneableCompatibility
|
Method Summary |
java.lang.Object |
clone()
Answers a new StyleRange with the same values as this StyleRange. |
boolean |
equals(java.lang.Object object)
Compare the specified object to this StyleRange and answer if the two
are equal. |
int |
hashCode()
Returns an integer hash code for the receiver. |
boolean |
isUnstyled()
Returns whether or not the receiver is unstyled (i.e., does not have any
style attributes specified). |
boolean |
similarTo(StyleRange style)
Compares the specified object to this StyleRange and answer if the two
are similar. |
java.lang.String |
toString()
Answers a string description of the receiver. |
start
public int start
length
public int length
foreground
public org.eclipse.swt.graphics.Color foreground
background
public org.eclipse.swt.graphics.Color background
fontStyle
public int fontStyle
StyleRange
public StyleRange()
StyleRange
public StyleRange(int start,
int length,
org.eclipse.swt.graphics.Color foreground,
org.eclipse.swt.graphics.Color background)
- Create a new style range.
StyleRange
public StyleRange(int start,
int length,
org.eclipse.swt.graphics.Color foreground,
org.eclipse.swt.graphics.Color background,
int fontStyle)
- Create a new style range.
equals
public boolean equals(java.lang.Object object)
- Compare the specified object to this StyleRange and answer if the two
are equal. The object must be an instance of StyleRange and have the
same field values.
hashCode
public int hashCode()
- Returns an integer hash code for the receiver. Objects which are
equal answer the same value for this method.
isUnstyled
public boolean isUnstyled()
- Returns whether or not the receiver is unstyled (i.e., does not have any
style attributes specified).
similarTo
public boolean similarTo(StyleRange style)
- Compares the specified object to this StyleRange and answer if the two
are similar. The object must be an instance of StyleRange and have the
same field values for except for start and length.
clone
public java.lang.Object clone()
- Answers a new StyleRange with the same values as this StyleRange.
toString
public java.lang.String toString()
- Answers a string description of the receiver.