Build 1.0_r1(from source)

android.text
Class Layout.Ellipsizer

java.lang.Object
  extended by android.text.Layout.Ellipsizer
All Implemented Interfaces:
GetChars, CharSequence
Direct Known Subclasses:
Layout.SpannedEllipsizer
Enclosing class:
Layout

static class Layout.Ellipsizer
extends Object
implements CharSequence, GetChars


Field Summary
(package private)  Layout mLayout
           
(package private)  TextUtils.TruncateAt mMethod
           
(package private)  CharSequence mText
           
(package private)  int mWidth
           
 
Constructor Summary
Layout.Ellipsizer(CharSequence s)
           
 
Method Summary
 char charAt(int off)
          Returns the character at the specified index, with the first character having index zero.
 void getChars(int start, int end, char[] dest, int destoff)
          Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.
 int length()
          Returns the number of characters in the sequence.
 CharSequence subSequence(int start, int end)
          Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mText

CharSequence mText

mLayout

Layout mLayout

mWidth

int mWidth

mMethod

TextUtils.TruncateAt mMethod
Constructor Detail

Layout.Ellipsizer

public Layout.Ellipsizer(CharSequence s)
Method Detail

charAt

public char charAt(int off)
Description copied from interface: CharSequence
Returns the character at the specified index, with the first character having index zero.

Specified by:
charAt in interface CharSequence
Parameters:
off - The index of the character to return
Returns:
The requested character

getChars

public void getChars(int start,
                     int end,
                     char[] dest,
                     int destoff)
Description copied from interface: GetChars
Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.

Specified by:
getChars in interface GetChars

length

public int length()
Description copied from interface: CharSequence
Returns the number of characters in the sequence.

Specified by:
length in interface CharSequence
Returns:
the number of characters in the sequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Description copied from interface: CharSequence
Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.

Specified by:
subSequence in interface CharSequence
Parameters:
start - The starting offset of the sub-sequence, that is, the index of the first character that goes into the sub-sequence
end - The ending offset of the sub-sequence, that is, the index of the first character after those that go into the sub-sequence
Returns:
The requested sub-sequence

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Specified by:
toString in interface CharSequence
Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature