android.text.style
Class QuoteSpan

java.lang.Object
  extended by android.text.style.QuoteSpan
All Implemented Interfaces:
Parcelable, ParcelableSpan, LeadingMarginSpan, ParagraphStyle

public class QuoteSpan
extends Object
implements LeadingMarginSpan, ParcelableSpan


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.style.LeadingMarginSpan
LeadingMarginSpan.LeadingMarginSpan2, LeadingMarginSpan.Standard
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
QuoteSpan()
           
QuoteSpan(int color)
           
QuoteSpan(Parcel src)
           
 
Method Summary
 int describeContents()
           
 void drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout)
           
 int getColor()
           
 int getLeadingMargin(boolean first)
           
 int getSpanTypeId()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteSpan

public QuoteSpan()

QuoteSpan

public QuoteSpan(int color)

QuoteSpan

public QuoteSpan(Parcel src)
Method Detail

getSpanTypeId

public int getSpanTypeId()
Specified by:
getSpanTypeId in interface ParcelableSpan

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

getColor

public int getColor()

getLeadingMargin

public int getLeadingMargin(boolean first)
Specified by:
getLeadingMargin in interface LeadingMarginSpan

drawLeadingMargin

public void drawLeadingMargin(Canvas c,
                              Paint p,
                              int x,
                              int dir,
                              int top,
                              int baseline,
                              int bottom,
                              CharSequence text,
                              int start,
                              int end,
                              boolean first,
                              Layout layout)
Specified by:
drawLeadingMargin in interface LeadingMarginSpan


Copyright © 2008-2012. All Rights Reserved.