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) |
void |
clear() |
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 addPoint(float[] point)
public void addPoint(float x, float y)
public PaintChunk startPaintChunk(Brush brush)
public void clear()
public boolean finalizePaintChunk()
public PaintChunk getCurrentChunk()
public boolean goBackwards()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public Painting.PaintingChunkList getPaintChunks()
public void addCallback(@NonNull Painting.Callback callback)
public void removeCallback(@NonNull Painting.Callback callback)
public Painting.PaintingChunkList createSaveState()
createSaveState
in interface Revertible<Painting.PaintingChunkList>
public void revertState(Painting.PaintingChunkList state)
revertState
in interface Revertible<Painting.PaintingChunkList>
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable