Package com.clover.common2
Class Signature2
- java.lang.Object
-
- com.clover.common2.Signature2
-
- All Implemented Interfaces:
Parcelable
public class Signature2 extends Object implements Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Signature2.Point
static class
Signature2.Stroke
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Signature2>
CREATOR
List<Signature2.Stroke>
strokes
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description Signature2()
Signature2(int width, int height)
Signature2(Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToStroke(int x, int y)
void
center()
void
clear()
int
describeContents()
No special parcel contents.Pair<Signature2.Point,Signature2.Point>
getBounds()
Signature2.Stroke
getLastStroke()
boolean
isEmpty()
void
leftAlign()
void
startStroke(int x, int y)
String
toString()
void
transform(int newWidth, int newHeight, boolean expand)
void
writeToParcel(Parcel p, int flags)
-
-
-
Field Detail
-
strokes
public List<Signature2.Stroke> strokes
-
CREATOR
public static final Parcelable.Creator<Signature2> CREATOR
-
-
Constructor Detail
-
Signature2
public Signature2()
-
Signature2
public Signature2(int width, int height)
-
Signature2
public Signature2(Parcel in)
-
-
Method Detail
-
startStroke
public void startStroke(int x, int y)
-
addToStroke
public void addToStroke(int x, int y)
-
clear
public void clear()
-
getLastStroke
public Signature2.Stroke getLastStroke()
-
isEmpty
public boolean isEmpty()
-
transform
public void transform(int newWidth, int newHeight, boolean expand)
-
center
public void center()
-
leftAlign
public void leftAlign()
-
getBounds
public Pair<Signature2.Point,Signature2.Point> getBounds()
-
describeContents
public int describeContents()
No special parcel contents.- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel p, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-