Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.javatools.editor.language
Class StyledFragment

java.lang.Object
  extended by oracle.javatools.editor.language.StyledFragment


public final class StyledFragment
extends java.lang.Object

A StyledFragment just associates a BaseStyle with a region of text. Data members are public for convenience. Note that fragments may span multiple lines.


Field Summary
 int endOffset
          The ending offset for this fragment (exclusive).
 int startOffset
          The starting offset for this fragment.
 java.lang.String styleName
          The name of the style to use for rendering this fragment.

 

Constructor Summary
StyledFragment(java.lang.String styleName, int startOffset, int endOffset)
          Constructs a new StyledFragment.

 

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

styleName

public java.lang.String styleName
The name of the 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).

Constructor Detail

StyledFragment

public StyledFragment(java.lang.String styleName,
                      int startOffset,
                      int endOffset)
Constructs a new StyledFragment.
Parameters:
styleName - the name of the style to use
startOffset - starting offset
endOffset - ending offset (exclusive)

Method Detail

toString

public java.lang.String toString()
Fetches a string representation of this fragment. This is only for debugging purposes.
Overrides:
toString in class java.lang.Object
Returns:
a string representation

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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