FileDocCategorySizeDatePackage
GraphicsOperations.javaAPI DocAndroid 5.1 API1981Thu Mar 12 22:22:10 GMT 2015android.text

GraphicsOperations

public interface GraphicsOperations implements CharSequence
Please implement this interface if your CharSequence can do quick draw/measure/widths calculations from an internal array. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public voiddrawText(android.graphics.Canvas c, int start, int end, float x, float y, android.graphics.Paint p)
Just like {@link Canvas#drawText}.

public voiddrawTextRun(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 floatgetTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, android.graphics.Paint paint)
Just like {@link Paint#getTextRunAdvances}.

hide

public intgetTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, android.graphics.Paint p)
Just like {@link Paint#getTextRunCursor}.

hide

public intgetTextWidths(int start, int end, float[] widths, android.graphics.Paint p)
Just like {@link Paint#getTextWidths}.

public floatmeasureText(int start, int end, android.graphics.Paint p)
Just like {@link Paint#measureText}.