Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.custom
Class StyleRange  view StyleRange download StyleRange.java

java.lang.Object
  extended byorg.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


Field Summary
 org.eclipse.swt.graphics.Color background
           
 int fontStyle
           
 org.eclipse.swt.graphics.Color foreground
           
 int length
           
 int start
           
 
Constructor Summary
StyleRange()
           
StyleRange(int start, int length, org.eclipse.swt.graphics.Color foreground, org.eclipse.swt.graphics.Color background)
          Create a new style range.
StyleRange(int start, int length, org.eclipse.swt.graphics.Color foreground, org.eclipse.swt.graphics.Color background, int fontStyle)
          Create a new style range.
 
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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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.