android.graphics
Class PointF

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

public class PointF
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<PointF> CREATOR
           
 float x
           
 float y
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
PointF()
           
PointF(float x, float y)
           
PointF(Point p)
           
 
Method Summary
 int describeContents()
           
 boolean equals(float x, float y)
           
 float length()
           
static float length(float x, float y)
           
 void negate()
           
 void offset(float dx, float dy)
           
 void readFromParcel(Parcel in)
           
 void set(float x, float y)
           
 void set(PointF p)
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

CREATOR

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

PointF

public PointF()

PointF

public PointF(float x,
              float y)

PointF

public PointF(Point p)
Method Detail

set

public final void set(float x,
                      float y)

set

public final void set(PointF p)

negate

public final void negate()

offset

public final void offset(float dx,
                         float dy)

equals

public final boolean equals(float x,
                            float y)

length

public final float length()

length

public static float length(float x,
                           float y)

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.