# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Methods | Inherited Methods

# MeasuredText

`public class MeasuredText`
`extends Object` ``

java.lang.Object
↳ | android.graphics.text.MeasuredText

Result of text shaping of the single paragraph string.

     Paint paint = new Paint();
     Paint bigPaint = new Paint();
     bigPaint.setTextSize(paint.getTextSize() * 2.0);
     String text = "Hello, Android.";
     MeasuredText mt = new MeasuredText.Builder(text.toCharArray())
          .appendStyleRun(paint, 7, false)  // Use paint for "Hello, "
          .appendStyleRun(bigPaint, 8, false)  // Use bigPaint for "Android."
          .build();

## Summary

### Nested classes
`class` | `MeasuredText.Builder` Helper class for creating a `MeasuredText`.

### Public methods
`void` | `getBounds(int start, int end, Rect rect)` Retrieves the boundary box of the given range
`float` | `getCharWidthAt(int offset)` Returns the width of the character at the given offset.
`float` | `getWidth(int start, int end)` Returns the width of a given range.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public methods

### getBounds

    public void getBounds (int start,
                    int end,
                    Rect rect)

Retrieves the boundary box of the given range

Parameters
`start` | `int`: an inclusive start index of the range Value is 0 or greater
`end` | `int`: an exclusive end index of the range Value is 0 or greater
`rect` | `Rect`: an output parameter This value cannot be `null`.

### getCharWidthAt

    public float getCharWidthAt (int offset)

Returns the width of the character at the given offset.
This units of this value are pixels.

Parameters
`offset` | `int`: an offset of the character. Value is 0 or greater

Returns
`float` | Value is 0.0f or greater This units of this value are pixels. {}

### getWidth

    public float getWidth (int start,
                    int end)

Returns the width of a given range.
This units of this value are pixels.

Parameters
`start` | `int`: an inclusive start index of the range Value is 0 or greater
`end` | `int`: an exclusive end index of the range Value is 0 or greater

Returns
`float` | Value is 0.0 or greater This units of this value are pixels. {}

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*