Create a new style range with no styles
SWT extension for clone implementation
Create a new style range from an existing text style.
Create a new style range.
Create a new style range.
Returns a new StyleRange with the same values as this StyleRange.
Returns whether or not the receiver is unstyled (i.e., does not have any style attributes specified).
Compares the argument to the receiver, and returns true if they represent the <em>same</em> object using a class specific comparison.
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.
Returns an integer hash code for the receiver. Any two objects that return <code>true</code> when passed to <code>equals</code> must return the same value for this method.
Returns a string containing a concise, human-readable description of the receiver.
the font style of the range. It may be a combination of SWT.NORMAL, SWT.ITALIC or SWT.BOLD
the length of the range
the start offset of the range, zero-based from the document start
the font of the style
the foreground of the style
the background of the style
the underline flag of the style. The default underline style is <code>SWT.UNDERLINE_SINGLE</code>.
the underline color of the style
the underline style. This style is ignored when <code>underline</code> is false. <p> This value should be one of <code>SWT.UNDERLINE_SINGLE</code>, <code>SWT.UNDERLINE_DOUBLE</code>, <code>SWT.UNDERLINE_ERROR</code>, or <code>SWT.UNDERLINE_SQUIGGLE</code>. </p>
the strikeout flag of the style
the strikeout color of the style
the border style. The default border style is <code>SWT.NONE</code>. <p> This value should be one of <code>SWT.BORDER_SOLID</code>, <code>SWT.BORDER_DASH</code>,<code>SWT.BORDER_DOT</code> or <code>SWT.NONE</code>. </p>
the border color of the style
the GlyphMetrics of the style
the baseline rise of the style.
Compares the argument to the receiver, and returns true if they represent the <em>same</em> object using a class specific comparison.
Returns an integer hash code for the receiver. Any two objects that return <code>true</code> when passed to <code>equals</code> must return the same value for this method.
Returns a string containing a concise, human-readable description of the receiver.
<code>StyleRange</code> defines a set of styles for a specified range of text. <p> 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. </p>
@see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>