public class TranslateXTransformation<T extends XSeriesRenderPassData> extends BaseRenderPassDataTransformation<T>
XSeriesRenderPassData
and it's inheritors in X direction.renderPassData
Constructor and Description |
---|
TranslateXTransformation(java.lang.Class<T> rpdType,
float offset)
Create new instance of
TranslateXTransformation class. |
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransformation()
Applies this transformation to associated series.
|
protected void |
applyTransformationInternal(float currentDelta)
Applies transformation using
transformValues(float, FloatValues) method. |
protected void |
discardTransformation()
Discards this transformation from associated series.
|
float |
getOffset()
Gets the offset value in pixels.
|
protected void |
onAnimationStartInternal()
Called on start of animation associated with current transformation
|
protected void |
onInternalRenderPassDataChanged()
Called when associated series render pass data changed during animation.
|
protected void |
prepareDataToTransformation()
Prepares associated render pass data to transformation.
|
protected void |
saveOriginalData()
Saves original data from render pass data, which supposed to be changed during
RenderPassDataTransformationBase.applyTransformation() call. |
protected void |
transformValues(float currentDelta,
com.scichart.core.model.FloatValues valuesToTransform)
Transforms valuesToTransform based on original coordinates and currentDelta, to achieve scale transform.
|
getCurrentDelta, getCurrentTransformationValue, onAnimationEnd, onAnimationStart, setCurrentProgress, shouldUpdateOnRenderPassDataChanged
attachTo, detach, isAttached, onRenderPassDataChanged, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onRenderPassDataChanged, transform
public TranslateXTransformation(java.lang.Class<T> rpdType, float offset)
TranslateXTransformation
class.rpdType
- Type of associated render pass data.offset
- The offset value in pixels.public final float getOffset()
protected void saveOriginalData()
RenderPassDataTransformationBase.applyTransformation()
call.saveOriginalData
in class RenderPassDataTransformationBase<T extends XSeriesRenderPassData>
protected void onInternalRenderPassDataChanged()
onInternalRenderPassDataChanged
in class RenderPassDataTransformationBase<T extends XSeriesRenderPassData>
protected void onAnimationStartInternal()
onAnimationStartInternal
in class BaseRenderPassDataTransformation<T extends XSeriesRenderPassData>
protected void prepareDataToTransformation()
protected void applyTransformation()
Note: This is used for animations purposes, so you need to take into account BaseRenderPassDataTransformation.getCurrentTransformationValue()
as well as BaseRenderPassDataTransformation.getCurrentDelta()
during implementing this.
applyTransformation
in class RenderPassDataTransformationBase<T extends XSeriesRenderPassData>
protected void applyTransformationInternal(float currentDelta)
transformValues(float, FloatValues)
method. FloatValues to be supplied from inheritors.
First arg is values to transform. Second is to get original coordinates from.currentDelta
- The current delta value, due to which values will be transformed.protected void transformValues(float currentDelta, com.scichart.core.model.FloatValues valuesToTransform)
currentDelta
- The current delta value, due to which values will be transformed.valuesToTransform
- Values to transform.protected void discardTransformation()
discardTransformation
in class RenderPassDataTransformationBase<T extends XSeriesRenderPassData>