GraphicsOperationspublic interface GraphicsOperations implements CharSequencePlease implement this interface if your CharSequence can do quick
draw/measure/widths calculations from an internal array.
{@hide} |
Methods Summary |
---|
public void | drawText(android.graphics.Canvas c, int start, int end, float x, float y, android.graphics.Paint p)Just like {@link Canvas#drawText}.
| public void | drawTextRun(android.graphics.Canvas c, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, android.graphics.Paint p)Just like {@link Canvas#drawTextRun}.
{@hide}
| public float | getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, android.graphics.Paint paint)Just like {@link Paint#getTextRunAdvances}.
| public int | getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, android.graphics.Paint p)Just like {@link Paint#getTextRunCursor}.
| public int | getTextWidths(int start, int end, float[] widths, android.graphics.Paint p)Just like {@link Paint#getTextWidths}.
| public float | measureText(int start, int end, android.graphics.Paint p)Just like {@link Paint#measureText}.
|
|