oracle.javatools.editor.underline
Class UnderlinedFragment
java.lang.Object
oracle.javatools.editor.underline.UnderlinedFragment
- public final class UnderlinedFragment
- extends java.lang.Object
An UnderlinedFragment
is used for associating a UnderlineStyle
with a segment or line of text. Data members are public for convenience. Note that fragments may span multiple lines. This class is identical to a HighlightedFragment
except that it applies to underlines.
This class is used internally by the editor component and is not returned to editor clients. When clients add underlines to a given layer, the object returned is of type UnderlinedText
or UnderlinedLine
.
Method Summary |
java.lang.String |
toString()
Fetches a string representation of this fragment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
underlineStyle
public UnderlineStyle underlineStyle
- The underline style to use for rendering this fragment.
startOffset
public int startOffset
- The starting offset for this fragment.
endOffset
public int endOffset
- The ending offset for this fragment (exclusive).
UnderlinedFragment
public UnderlinedFragment()
toString
public java.lang.String toString()
- Fetches a string representation of this fragment. This is mostly for debugging purposes.
-
- Returns:
- a string representation
Copyright © 1997, 2004, Oracle. All rights reserved.