com.alee.extended.label
Class TextRange

java.lang.Object
  extended by com.alee.extended.label.TextRange

public class TextRange
extends java.lang.Object

This class represents part of the multi-styled text with its own style. Created for internal usage within WebStyledLabelUI to split the styled text into separate renderable pieces.

Author:
Mikle Garin

Field Summary
 StyleRange styleRange
          Text part style.
 java.lang.String text
          Text part.
 
Constructor Summary
TextRange(java.lang.String text)
          Constructs new TextRange with empty style.
TextRange(java.lang.String text, StyleRange styleRange)
          Constructs new TextRange with the specified style.
 
Method Summary
 StyleRange getStyleRange()
          Returns text part style.
 java.lang.String getText()
          Returns text part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public java.lang.String text
Text part.


styleRange

public StyleRange styleRange
Text part style.

Constructor Detail

TextRange

public TextRange(java.lang.String text)
Constructs new TextRange with empty style.

Parameters:
text - text part

TextRange

public TextRange(java.lang.String text,
                 StyleRange styleRange)
Constructs new TextRange with the specified style.

Parameters:
text - text part
styleRange - text part style
Method Detail

getText

public java.lang.String getText()
Returns text part.

Returns:
text part

getStyleRange

public StyleRange getStyleRange()
Returns text part style.

Returns:
text part style