静态 Public 成员函数 | |
| static int | subStringLength (String str, int maxPix, TextPaint paint) |
| static float | getStringWidth (String str, TextPaint paint) |
| static float | getDesiredWidth (String str, TextPaint paint) |
| static List< String > | getDrawRowStr (String text, int maxWPix, TextPaint paint) |
| static int | getDrawRowCount (String text, int maxWPix, TextPaint paint) |
| static int | drawText (Canvas canvas, String text, int maxWPix, TextPaint paint, int left, int top) |
描述:图形处理类.
|
inlinestatic |
描述:绘制文本,支持换行.
| canvas | the canvas |
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
| left | the left |
| top | the top |
|
inlinestatic |
Return how wide a layout must be in order to display the specified text with one line per paragraph.
| str | the str |
| paint | the paint |
|
inlinestatic |
Gets the draw row count.
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
|
inlinestatic |
Gets the draw row string.
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
|
inlinestatic |
描述:获取文字的像素宽.
| str | the str |
| paint | the paint |
|
inlinestatic |
描述:获取字符的所在位置(按像素获取最大能容纳的).
| str | 指定的字符串 |
| maxPix | 要取到的位置(像素) |
| paint | the paint |
1.8.4