com.aliyun.svideosdk.common.struct.effect

## Class TransitionTranslate

- java.lang.Object
- - com.aliyun.svideosdk.common.struct.project.Effect
  - - com.aliyun.svideosdk.common.struct.effect.TransitionBase
    - - com.aliyun.svideosdk.common.struct.effect.TransitionTranslate

-     public class TransitionTranslate
      extends TransitionBase

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.aliyun.svideosdk.common.struct.project.Effect

      `Effect.Type`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected int` | `mDirection` The direction of the translational motion.

    - ### Fields inherited from class com.aliyun.svideosdk.common.struct.effect.TransitionBase

      `DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, mCustomSource, mParamsString, mType, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, TRANSITION_TYPE_CIRCLE, TRANSITION_TYPE_CUSTOM, TRANSITION_TYPE_FADE, TRANSITION_TYPE_FIVEPOINTSTAR, TRANSITION_TYPE_SHUTTER, TRANSITION_TYPE_TRANSLATE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransitionTranslate()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDirection()` Gets the direction of this motion.
    `TransitionTranslate` | `setDirection(int direction)` Sets the direction of this motion.

    - ### Methods inherited from class com.aliyun.svideosdk.common.struct.effect.TransitionBase

      `getCustomSource, getEffectConfig, getNodeTree, getOverlapDuration, getOverlapDuration, setCustomSource, setEffectConfig, setOverlapDuration, setOverlapDuration, setParamsString, toJsonString`

    - ### Methods inherited from class com.aliyun.svideosdk.common.struct.project.Effect

      `getType`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### mDirection

          protected int mDirection

      The direction of the translational motion.

  - ### Constructor Detail

    - #### TransitionTranslate

          public TransitionTranslate()

  - ### Method Detail

    - #### getDirection

          public int getDirection()

      Gets the direction of this motion.
      Returns:
        `TransitionBase.DIRECTION_DOWN` `TransitionBase.DIRECTION_LEFT` `TransitionBase.DIRECTION_RIGHT` `TransitionBase.DIRECTION_UP`

    - #### setDirection

          public TransitionTranslate setDirection(int direction)

      Sets the direction of this motion.
      Parameters:
        `direction` - `TransitionBase.DIRECTION_DOWN` `TransitionBase.DIRECTION_LEFT` `TransitionBase.DIRECTION_RIGHT` `TransitionBase.DIRECTION_UP`