Class TranslateXTransformation<T>
Provides class, which used to translate transform series with XSeriesRenderPassData and it's inheritors in X direction.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class TranslateXTransformation<T> extends BaseRenderPassDataTransformation<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
TranslateXTransformation(Class<T> rpdType, float offset)
Create new instance of TranslateXTransformation class.
Declaration
public TranslateXTransformation(Class<T> rpdType, float offset)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | rpdType | Type of associated render pass data. |
float | offset | The offset value in pixels. |
Methods
applyTransformation()
Applies this transformation to associated series.
Note: This is used for animations purposes, so you need to take into account BaseRenderPassDataTransformation#getCurrentTransformationValue() as well as BaseRenderPassDataTransformation#getCurrentDelta() during implementing this.
Declaration
protected void applyTransformation()
Overrides
applyTransformationInternal(float currentDelta)
Applies transformation using #transformValues(float, FloatValues) method. FloatValues to be supplied from inheritors. First arg is values to transform. Second is to get original coordinates from.
Declaration
protected void applyTransformationInternal(float currentDelta)
Parameters
Type | Name | Description |
---|---|---|
float | currentDelta | The current delta value, due to which values will be transformed. |
discardTransformation()
Discards this transformation from associated series.
Declaration
protected void discardTransformation()
Overrides
getOffset()
Gets the offset value in pixels.
Declaration
public final float getOffset()
Returns
Type | Description |
---|---|
float | The offset value in pixels. |
onAnimationStartInternal()
Called on start of animation associated with current transformation
Declaration
protected void onAnimationStartInternal()
Overrides
onInternalRenderPassDataChanged()
Called when associated series render pass data changed during animation.
Declaration
protected void onInternalRenderPassDataChanged()
Overrides
prepareDataToTransformation()
Prepares associated render pass data to transformation.
Declaration
protected void prepareDataToTransformation()
saveOriginalData()
Saves original data from render pass data, which supposed to be changed during #applyTransformation() call.
Declaration
protected void saveOriginalData()
Overrides
transformValues(float currentDelta, FloatValues valuesToTransform)
Transforms valuesToTransform based on original coordinates and currentDelta, to achieve scale transform.
Declaration
protected void transformValues(float currentDelta, FloatValues valuesToTransform)
Parameters
Type | Name | Description |
---|---|---|
float | currentDelta | The current delta value, due to which values will be transformed. |
FloatValues | valuesToTransform | Values to transform. |