|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alee.extended.label.TextRange
public class TextRange
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.
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 |
---|
public java.lang.String text
public StyleRange styleRange
Constructor Detail |
---|
public TextRange(java.lang.String text)
text
- text partpublic TextRange(java.lang.String text, StyleRange styleRange)
text
- text partstyleRange
- text part styleMethod Detail |
---|
public java.lang.String getText()
public StyleRange getStyleRange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |