public class RotateOperation extends AbstractOperation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ly.img.android.sdk.operator.AbstractEditorOperation.EditorProtectedAccessor
Helper class to access protected Editor methods.
|
AbstractOperation.Holder, AbstractOperation.MODE, AbstractOperation.OperationDoneListener, AbstractOperation.ResultHolder, AbstractOperation.SourceHolder| Constructor and Description |
|---|
RotateOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doOperation() |
protected java.lang.String |
getIdentifier() |
AbstractOperation.MODE |
getOperationMode()
Return the current execution mode of this operator.
|
protected Operator.Priority |
getPriority() |
int |
getRotation()
Get the current rotation.
|
StickerHolderView |
getStickerStage()
Get the Sticker stage to add, edit or remove Sticker
|
void |
init(EditorPreview editorPreview) |
boolean |
isFlipHorizontal()
Check if image flipped horizontal.
|
boolean |
isFlipVertical()
Check if image flipped vertical.
|
void |
rotateCCW()
Rotate Counter Clockwise
|
void |
rotateCW()
Rotate Clockwise
|
protected void |
runOnUiThread(ly.img.android.sdk.operator.AbstractEditorOperation.UiRunnable runnable)
Run a part of the operation async on the next Main Thread frame.
|
void |
setFlipHorizontal(boolean flipHorizontal)
Set horizontal flip
|
void |
setFlipVertical(boolean flipVertical)
Set vertical flip
|
void |
setRotation(int rotation)
Set rotation in 90 Degree steps
|
compareTo, doOperation, equals, getOperationRunnable, getOperator, getResultBitmapHolder, hasBitmapHolder, hashCode, operationDone, toStringprotected Operator.Priority getPriority()
getPriority in class AbstractOperationprotected java.lang.String getIdentifier()
getIdentifier in class AbstractOperationpublic AbstractOperation.MODE getOperationMode()
AbstractOperationgetOperationMode in class AbstractOperationAbstractOperation.MODEprotected boolean doOperation()
doOperation in class AbstractOperationpublic void rotateCW()
public void rotateCCW()
public void setRotation(int rotation)
public int getRotation()
public boolean isFlipVertical()
public boolean isFlipHorizontal()
public void setFlipVertical(boolean flipVertical)
flipVertical - true to set flip vertical if is not already flippedpublic void setFlipHorizontal(boolean flipHorizontal)
flipHorizontal - true to set flip vertical if is not already flippedpublic void init(EditorPreview editorPreview)
protected void runOnUiThread(ly.img.android.sdk.operator.AbstractEditorOperation.UiRunnable runnable)
runnable - UiRunnable implementationpublic StickerHolderView getStickerStage()