-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented translations. Using Matrix for transforms.
- Loading branch information
1 parent
aeb95e0
commit 20aa2ad
Showing
8 changed files
with
228 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
src/main/java/com/agsw/FabricView/DrawableObjects/CTransform.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
package com.agsw.FabricView.DrawableObjects; | ||
|
||
import android.graphics.Canvas; | ||
import android.graphics.Matrix; | ||
import android.graphics.RectF; | ||
|
||
/** | ||
* Created by emmanuel.proulx on 2017-08-27. | ||
*/ | ||
|
||
public abstract class CTransform extends CDrawable { | ||
abstract Canvas applyTransform(Canvas canvas); | ||
|
||
private CDrawable mDrawable; | ||
|
||
public CDrawable getDrawable() { | ||
return mDrawable; | ||
} | ||
|
||
public void setDrawable(CDrawable drawable) { | ||
this.mDrawable = drawable; | ||
} | ||
|
||
public abstract void applyTransform(Matrix matrix); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.