|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WTextItem
public class WTextItem
The result of a font metrics computation.
WPaintDevice.measureText(CharSequence text, double maxWidth, boolean
wordWrap)| Constructor Summary | |
|---|---|
WTextItem(java.lang.CharSequence text,
double width)
Constructor. |
|
WTextItem(java.lang.CharSequence text,
double width,
double nextWidth)
Constructor. |
|
| Method Summary | |
|---|---|
double |
getNextWidth()
Returns the width for a next line-break boundary. |
WString |
getText()
Returns the measured text. |
double |
getWidth()
Returns the measured width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WTextItem(java.lang.CharSequence text,
double width,
double nextWidth)
public WTextItem(java.lang.CharSequence text,
double width)
Calls this(text, width, - 1)
| Method Detail |
|---|
public WString getText()
If the item was measured with word breaking enabled, then the text may
contain trailing whitespace that is not included in the
getWidth().
public double getWidth()
Returns the text width, in device local coordinates (pixels).
public double getNextWidth()
Returns the width until the next line-break boundary, or -1 if the underlying word boundary analysis does not suppor this.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||