public abstract class AbstractOperation extends java.lang.Object implements java.lang.Comparable<AbstractOperation>
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractOperation.Holder |
static class |
AbstractOperation.MODE
Operation execution mode
|
static interface |
AbstractOperation.OperationDoneListener
Operation done callback.
|
static interface |
AbstractOperation.ResultHolder |
static interface |
AbstractOperation.SourceHolder |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AbstractOperation operation) |
protected abstract boolean |
doOperation() |
boolean |
doOperation(AbstractOperation.OperationDoneListener listener)
Start the Operation
|
boolean |
equals(java.lang.Object o) |
protected abstract java.lang.String |
getIdentifier() |
abstract AbstractOperation.MODE |
getOperationMode()
Return the current execution mode of this operator.
|
java.lang.Runnable |
getOperationRunnable(AbstractOperation.OperationDoneListener listener)
Deprecated.
|
protected Operator |
getOperator()
Get the Image render Operator
|
protected abstract Operator.Priority |
getPriority() |
AbstractOperation.ResultHolder |
getResultBitmapHolder()
Get the result holder, this object holds the result.
|
boolean |
hasBitmapHolder()
Get whether the Operator has a result
|
int |
hashCode() |
protected void |
operationDone()
Must be called if the mode is #Mode.BLOCKING_MAIN_THREAD
|
java.lang.String |
toString() |
protected abstract Operator.Priority getPriority()
protected abstract java.lang.String getIdentifier()
protected Operator getOperator()
public abstract AbstractOperation.MODE getOperationMode()
AbstractOperation.MODEprotected abstract boolean doOperation()
public boolean doOperation(AbstractOperation.OperationDoneListener listener)
listener - a callback for the Mode #MODE.BLOCKING_MAIN_THREAD, in other modes the callback will never firedpublic boolean hasBitmapHolder()
public AbstractOperation.ResultHolder getResultBitmapHolder()
protected void operationDone()
public int compareTo(AbstractOperation operation)
compareTo in interface java.lang.Comparable<AbstractOperation>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@Deprecated public final java.lang.Runnable getOperationRunnable(AbstractOperation.OperationDoneListener listener)