Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.editor.highlight
Class HighlightFragment

java.lang.Object
  extended by oracle.javatools.editor.highlight.HighlightFragment

public class HighlightFragment
extends java.lang.Object

A HighlightFragment is a fragment describing highlight information for rendering highlights. It provides information about the background, foreground, font, and underline highlight attributes for a specific region of text. Data members are public for convenience.

Note that not all style fields may be filled in, as it depends on how the fragment list was generated. This class is similar in principle to a StyledFragment except that it applies to highlights.

This class is used internally by the editor component for rendering, and is not returned to editor clients. When clients add highlights to a given layer, the object returned is of type HighlightedText.


Field Summary
 HighlightStyle backgroundStyle
          The highlight style for the background attribute.
 int endOffset
          The ending offset for this fragment (exclusive).
 HighlightStyle fontStyle
          The highlight style for the font attribute.
 HighlightStyle foregroundStyle
          The highlight style for the foreground attribute.
 int startOffset
          The starting offset for this fragment.
 HighlightStyle underlineStyle
          The highlight style for the underline attribute.
 
Constructor Summary
HighlightFragment()
           
 
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
 

Field Detail

backgroundStyle

public HighlightStyle backgroundStyle
The highlight style for the background attribute. Null if there is none to apply.


foregroundStyle

public HighlightStyle foregroundStyle
The highlight style for the foreground attribute. Null if there is none to apply.


fontStyle

public HighlightStyle fontStyle
The highlight style for the font attribute. Null if there is none to apply.


underlineStyle

public HighlightStyle underlineStyle
The highlight style for the underline attribute.


startOffset

public int startOffset
The starting offset for this fragment.


endOffset

public int endOffset
The ending offset for this fragment (exclusive).

Constructor Detail

HighlightFragment

public HighlightFragment()
Method Detail

toString

public java.lang.String toString()
Fetches a string representation of this fragment. This is primarily for debugging purposes.

Overrides:
toString in class java.lang.Object
Returns:
a string representation

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.