public interface ITextMetrics
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Perform a cleanup when this object is not required anymore
|
double |
getDescent()
Returns the descent of a single line of text using the font defined in
the contained label
|
double |
getFullHeight()
Returns the full height of all lines of text using the font defined in
the contained label
|
double |
getFullHeight(double fontHeight) |
double |
getFullWidth()
Returns the max width of the widest line of text using the font defined
in the contained label
|
double |
getHeight()
Returns the height of a single line of text using the font defined in the
contained label
|
java.lang.String |
getLine(int iIndex)
The text associated with a line index for multi-line text
|
int |
getLineCount()
Returns the number of lines of text associated with the label to be
rendered
|
java.util.Locale |
getLocale()
Deprecated.
use
getULocale() instead. |
ULocale |
getULocale()
Returns the locale associated with the text metrics implementer
|
double |
getWidth(int iIndex)
The text's width of associated with a line index.
|
void |
reuse(Label la)
Permits reuse of the text metrics instance for a new label with new
attributes.
|
void |
reuse(Label la,
double forceWrappingSize)
Permits reuse of the text metrics instance for a new label with new
attributes and a forcing wrapping size.
|
void reuse(Label la)
void reuse(Label la, double forceWrappingSize)
double getHeight()
double getDescent()
double getFullHeight()
double getFullHeight(double fontHeight)
double getFullWidth()
int getLineCount()
java.lang.String getLine(int iIndex)
iIndex
- The line to be retrieved from multi-line textdouble getWidth(int iIndex)
iIndex
- void dispose()
java.util.Locale getLocale()
getULocale()
instead.ULocale getULocale()
Copyright © 2005-2014 OpenText Corp. All rights reserved.