|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.androidplot.util.FontUtils
public class FontUtils
Constructor Summary | |
---|---|
FontUtils()
|
Method Summary | |
---|---|
static float |
getFontHeight(android.graphics.Paint paint)
Determines the height of the tallest character that can be drawn by paint. |
static float |
getHalfStringHeight(String text,
android.graphics.Paint paint)
Deprecated. |
static android.graphics.Rect |
getPackedStringDimensions(String text,
android.graphics.Paint paint)
Get the smallest rect that ecompasses the text to be drawn using paint. |
static android.graphics.Rect |
getStringDimensions(String text,
android.graphics.Paint paint)
Like getPackedStringDimensions except adds extra space to accommodate all characters that can be drawn regardless of whether or not they exist in text. |
static float |
getStringHeight(String text,
android.graphics.Paint paint)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontUtils()
Method Detail |
---|
public static float getFontHeight(android.graphics.Paint paint)
paint
-
@Deprecated public static float getStringHeight(String text, android.graphics.Paint paint)
text
- paint
-
@Deprecated public static float getHalfStringHeight(String text, android.graphics.Paint paint)
text
- paint
-
public static android.graphics.Rect getPackedStringDimensions(String text, android.graphics.Paint paint)
text
- paint
-
public static android.graphics.Rect getStringDimensions(String text, android.graphics.Paint paint)
text
- paint
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |