public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static float |
runLineSpanToIndex(char[] text,
android.text.TextPaint paint,
su.whs.watl.text.LineSpan span,
su.whs.watl.text.LineSpanBreak spanBreak,
int lineStart,
int index,
int margin,
int direction,
float justifyArgument,
int width,
android.graphics.Rect textPaddings,
android.graphics.Rect drawablePaddings)
returns drawing start coordinate for character at position 'index'
note, if span are LTR - returns left edge of character,
else (for RTL) - returns right bound
|
static int |
runLineSpanToX(char[] text,
android.text.TextPaint paint,
su.whs.watl.text.LineSpan span,
su.whs.watl.text.LineSpanBreak spanBreak,
int lineStart,
float atX,
float margin,
int direction,
float justifyArgument,
int width,
android.graphics.Rect textPaddings,
android.graphics.Rect drawablePaddings) |
public static int runLineSpanToX(char[] text, android.text.TextPaint paint, su.whs.watl.text.LineSpan span, su.whs.watl.text.LineSpanBreak spanBreak, int lineStart, float atX, float margin, int direction, float justifyArgument, int width, android.graphics.Rect textPaddings, android.graphics.Rect drawablePaddings)
public static float runLineSpanToIndex(char[] text, android.text.TextPaint paint, su.whs.watl.text.LineSpan span, su.whs.watl.text.LineSpanBreak spanBreak, int lineStart, int index, int margin, int direction, float justifyArgument, int width, android.graphics.Rect textPaddings, android.graphics.Rect drawablePaddings)