Build 1.0_r1(from source)

android.text
Interface GraphicsOperations

All Superinterfaces:
CharSequence
All Known Implementing Classes:
SpannableStringBuilder

public interface GraphicsOperations
extends CharSequence

Please implement this interface if your CharSequence can do quick draw/measure/widths calculations from an internal array.


Method Summary
 void drawText(Canvas c, int start, int end, float x, float y, Paint p)
          Just like Canvas.drawText(char[], int, int, float, float, android.graphics.Paint).
 int getTextWidths(int start, int end, float[] widths, Paint p)
          Just like Paint.getTextWidths(char[], int, int, float[]).
 float measureText(int start, int end, Paint p)
          Just like Paint.measureText(char[], int, int).
 
Methods inherited from interface java.lang.CharSequence
charAt, length, subSequence, toString
 

Method Detail

drawText

void drawText(Canvas c,
              int start,
              int end,
              float x,
              float y,
              Paint p)
Just like Canvas.drawText(char[], int, int, float, float, android.graphics.Paint).


measureText

float measureText(int start,
                  int end,
                  Paint p)
Just like Paint.measureText(char[], int, int).


getTextWidths

int getTextWidths(int start,
                  int end,
                  float[] widths,
                  Paint p)
Just like Paint.getTextWidths(char[], int, int, float[]).


Build 1.0_r1(from source)

Please submit a feedback, bug or feature