public abstract class BaseRenderPassDataTransformation<TRenderPassData extends ISeriesRenderPassData> extends RenderPassDataTransformationBase<TRenderPassData> implements IRenderPassDataTransformation
Note: This base class and inheritors are used for animations purposes. You can use it to just transform render pass data, it's not recommended though.
renderPassData
Modifier | Constructor and Description |
---|---|
protected |
BaseRenderPassDataTransformation(java.lang.Class<TRenderPassData> rpdType)
Create new instance of
BaseRenderPassDataTransformation class. |
Modifier and Type | Method and Description |
---|---|
float |
getCurrentDelta()
Get's current delta value, which is the difference between currentProgress and previousProgress.
|
float |
getCurrentTransformationValue()
Get's current value, which is used to transform render pass data.
|
void |
onAnimationEnd()
Notifies the end of the associated animation.
|
void |
onAnimationStart(float initialValue)
Deprecated.
Use
onAnimationStartInternal() instead |
protected void |
onAnimationStartInternal()
Called on start of animation associated with current transformation
|
void |
setCurrentProgress(float currentProgress)
Set's current value, according to which, associated render pass data will be transformed.
|
protected boolean |
shouldUpdateOnRenderPassDataChanged() |
applyTransformation, attachTo, detach, discardTransformation, isAttached, onInternalRenderPassDataChanged, onRenderPassDataChanged, saveOriginalData, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onRenderPassDataChanged, transform
protected BaseRenderPassDataTransformation(java.lang.Class<TRenderPassData> rpdType)
BaseRenderPassDataTransformation
class.rpdType
- Type of associated render pass data.public final void setCurrentProgress(float currentProgress)
Note: This is used for animations purposes.
currentProgress
- The new value.public final float getCurrentDelta()
Note: previousProgress is updating in this method only. So right after getting delta, previous delta is replaced by current.
public final float getCurrentTransformationValue()
Note: named like so because of Xamarin.Android binding generator issues.
@Deprecated public final void onAnimationStart(float initialValue)
onAnimationStartInternal()
insteadinitialValue
- The initial value of the associated animation.protected void onAnimationStartInternal()
public void onAnimationEnd()
protected boolean shouldUpdateOnRenderPassDataChanged()
shouldUpdateOnRenderPassDataChanged
in class RenderPassDataTransformationBase<TRenderPassData extends ISeriesRenderPassData>