android.gesture
Class Gesture

java.lang.Object
  extended by android.gesture.Gesture
All Implemented Interfaces:
Parcelable

public class Gesture
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<Gesture> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Gesture()
           
 
Method Summary
 void addStroke(GestureStroke stroke)
           
 Object clone()
           
 int describeContents()
           
 RectF getBoundingBox()
           
 long getID()
           
 float getLength()
           
 ArrayList<GestureStroke> getStrokes()
           
 int getStrokesCount()
           
 Bitmap toBitmap(int width, int height, int inset, int color)
           
 Bitmap toBitmap(int width, int height, int edge, int numSample, int color)
           
 Path toPath()
           
 Path toPath(int width, int height, int edge, int numSample)
           
 Path toPath(Path path)
           
 Path toPath(Path path, int width, int height, int edge, int numSample)
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

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

Gesture

public Gesture()
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getStrokes

public ArrayList<GestureStroke> getStrokes()

getStrokesCount

public int getStrokesCount()

addStroke

public void addStroke(GestureStroke stroke)

getLength

public float getLength()

getBoundingBox

public RectF getBoundingBox()

toPath

public Path toPath()

toPath

public Path toPath(Path path)

toPath

public Path toPath(int width,
                   int height,
                   int edge,
                   int numSample)

toPath

public Path toPath(Path path,
                   int width,
                   int height,
                   int edge,
                   int numSample)

getID

public long getID()

toBitmap

public Bitmap toBitmap(int width,
                       int height,
                       int edge,
                       int numSample,
                       int color)

toBitmap

public Bitmap toBitmap(int width,
                       int height,
                       int inset,
                       int color)

writeToParcel

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

describeContents

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


Copyright © 2008-2012. All Rights Reserved.