public class TextAdapter extends java.lang.Object implements ITextMetrics
ITextMetricsinterface definition.| 构造器和说明 |
|---|
TextAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
Returns the locale associated with the text metrics implementer
|
com.ibm.icu.util.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 |
setLocale(com.ibm.icu.util.ULocale lcl)
Sets current locale.
|
public void reuse(Label la)
ITextMetricsreuse 在接口中 ITextMetricspublic void reuse(Label la, double forceWrappingSize)
ITextMetricsreuse 在接口中 ITextMetricspublic double getHeight()
ITextMetricsgetHeight 在接口中 ITextMetricspublic double getDescent()
ITextMetricsgetDescent 在接口中 ITextMetricspublic double getFullHeight()
ITextMetricsgetFullHeight 在接口中 ITextMetricspublic double getFullWidth()
ITextMetricsgetFullWidth 在接口中 ITextMetricspublic int getLineCount()
ITextMetricsgetLineCount 在接口中 ITextMetricspublic java.lang.String getLine(int iIndex)
ITextMetricsgetLine 在接口中 ITextMetricsiIndex - The line to be retrieved from multi-line textpublic void dispose()
ITextMetricsdispose 在接口中 ITextMetricspublic final java.util.Locale getLocale()
ITextMetricsgetLocale 在接口中 ITextMetricspublic final com.ibm.icu.util.ULocale getULocale()
ITextMetricsgetULocale 在接口中 ITextMetricspublic final void setLocale(com.ibm.icu.util.ULocale lcl)
lcl - public double getFullHeight(double fontHeight)
getFullHeight 在接口中 ITextMetricspublic double getWidth(int iIndex)
ITextMetricsgetWidth 在接口中 ITextMetricsCopyright © 2005-2008 Actuate Corp. All rights reserved.