android.graphics
Class RectF

java.lang.Object
  extended by android.graphics.RectF
All Implemented Interfaces:
Parcelable

public class RectF
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 float bottom
           
static Parcelable.Creator<RectF> CREATOR
           
 float left
           
 float right
           
 float top
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
RectF()
           
RectF(float left, float top, float right, float bottom)
           
RectF(Rect r)
           
RectF(RectF r)
           
 
Method Summary
 float centerX()
           
 float centerY()
           
 boolean contains(float x, float y)
           
 boolean contains(float left, float top, float right, float bottom)
           
 boolean contains(RectF r)
           
 int describeContents()
           
 float height()
           
 void inset(float dx, float dy)
           
 boolean intersect(float left, float top, float right, float bottom)
           
 boolean intersect(RectF r)
           
 boolean intersects(float left, float top, float right, float bottom)
           
static boolean intersects(RectF a, RectF b)
           
 boolean isEmpty()
           
 void offset(float dx, float dy)
           
 void offsetTo(float newLeft, float newTop)
           
 void readFromParcel(Parcel in)
           
 void round(Rect dst)
           
 void roundOut(Rect dst)
           
 void set(float left, float top, float right, float bottom)
           
 void set(Rect src)
           
 void set(RectF src)
           
 void setEmpty()
           
 boolean setIntersect(RectF a, RectF b)
           
 void sort()
           
 String toShortString()
           
 String toString()
           
 void union(float x, float y)
           
 void union(float left, float top, float right, float bottom)
           
 void union(RectF r)
           
 float width()
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

left

public float left

top

public float top

right

public float right

bottom

public float bottom

CREATOR

public static final Parcelable.Creator<RectF> CREATOR
Constructor Detail

RectF

public RectF()

RectF

public RectF(float left,
             float top,
             float right,
             float bottom)

RectF

public RectF(RectF r)

RectF

public RectF(Rect r)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toShortString

public String toShortString()

isEmpty

public final boolean isEmpty()

width

public final float width()

height

public final float height()

centerX

public final float centerX()

centerY

public final float centerY()

setEmpty

public void setEmpty()

set

public void set(float left,
                float top,
                float right,
                float bottom)

set

public void set(RectF src)

set

public void set(Rect src)

offset

public void offset(float dx,
                   float dy)

offsetTo

public void offsetTo(float newLeft,
                     float newTop)

inset

public void inset(float dx,
                  float dy)

contains

public boolean contains(float x,
                        float y)

contains

public boolean contains(float left,
                        float top,
                        float right,
                        float bottom)

contains

public boolean contains(RectF r)

intersect

public boolean intersect(float left,
                         float top,
                         float right,
                         float bottom)

intersect

public boolean intersect(RectF r)

setIntersect

public boolean setIntersect(RectF a,
                            RectF b)

intersects

public boolean intersects(float left,
                          float top,
                          float right,
                          float bottom)

intersects

public static boolean intersects(RectF a,
                                 RectF b)

round

public void round(Rect dst)

roundOut

public void roundOut(Rect dst)

union

public void union(float left,
                  float top,
                  float right,
                  float bottom)

union

public void union(RectF r)

union

public void union(float x,
                  float y)

sort

public void sort()

describeContents

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

writeToParcel

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

readFromParcel

public void readFromParcel(Parcel in)


Copyright © 2008-2012. All Rights Reserved.