|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.device.TextAdapter
public class TextAdapter
A no-op adapter implementation for the
ITextMetrics
interface definition.
Constructor Summary | |
---|---|
TextAdapter()
|
Method Summary | |
---|---|
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 |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAdapter()
Method Detail |
---|
public void reuse(Label la)
ITextMetrics
reuse
in interface ITextMetrics
public void reuse(Label la, double forceWrappingSize)
ITextMetrics
reuse
in interface ITextMetrics
public double getHeight()
ITextMetrics
getHeight
in interface ITextMetrics
public double getDescent()
ITextMetrics
getDescent
in interface ITextMetrics
public double getFullHeight()
ITextMetrics
getFullHeight
in interface ITextMetrics
public double getFullWidth()
ITextMetrics
getFullWidth
in interface ITextMetrics
public int getLineCount()
ITextMetrics
getLineCount
in interface ITextMetrics
public java.lang.String getLine(int iIndex)
ITextMetrics
getLine
in interface ITextMetrics
iIndex
- The line to be retrieved from multi-line text
public void dispose()
ITextMetrics
dispose
in interface ITextMetrics
public final java.util.Locale getLocale()
ITextMetrics
getLocale
in interface ITextMetrics
public final com.ibm.icu.util.ULocale getULocale()
ITextMetrics
getULocale
in interface ITextMetrics
public final void setLocale(com.ibm.icu.util.ULocale lcl)
lcl
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |