public class Painting extends java.lang.Object implements android.os.Parcelable, Revertible<Painting.PaintingChunkList>
Modifier and Type | Class and Description |
---|---|
static interface |
Painting.Callback |
static class |
Painting.PaintingChunkList |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Painting> |
CREATOR |
Modifier | Constructor and Description |
---|---|
|
Painting() |
protected |
Painting(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(Painting.Callback callback) |
void |
addPoint(float[] point) |
void |
addPoint(float x,
float y) |
Painting.PaintingChunkList |
createSaveState() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
boolean |
finalizePaintChunk() |
PaintChunk |
getCurrentChunk() |
Painting.PaintingChunkList |
getPaintChunks() |
boolean |
goBackwards() |
int |
hashCode() |
void |
removeCallback(Painting.Callback callback) |
void |
revertState(Painting.PaintingChunkList state) |
PaintChunk |
startPaintChunk(Brush brush) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Painting> CREATOR
public void addCallback(@NonNull Painting.Callback callback)
public void addPoint(float[] point)
public void addPoint(float x, float y)
public Painting.PaintingChunkList createSaveState()
createSaveState
in interface Revertible<Painting.PaintingChunkList>
public int describeContents()
describeContents
in interface android.os.Parcelable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean finalizePaintChunk()
public PaintChunk getCurrentChunk()
@NonNull public Painting.PaintingChunkList getPaintChunks()
public boolean goBackwards()
public int hashCode()
hashCode
in class java.lang.Object
public void removeCallback(@NonNull Painting.Callback callback)
public void revertState(Painting.PaintingChunkList state)
revertState
in interface Revertible<Painting.PaintingChunkList>
public PaintChunk startPaintChunk(Brush brush)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable