IT. Expert System.

Android Reference

Transition


android.media.videoeditor

Class Transition

  • Direct Known Subclasses:
    TransitionAlpha, TransitionCrossfade, TransitionFadeBlack, TransitionSliding


    public abstract class Transition
    extends Object
    This class is super class for all transitions. Transitions (with the exception of TransitionAtStart and TransitioAtEnd) can only be inserted between media items. Adding a transition between MediaItems makes the duration of the storyboard shorter by the duration of the Transition itself. As a result, if the duration of the transition is larger than the smaller duration of the two MediaItems associated with the Transition, an exception will be thrown. During a transition, the audio track are cross-fading automatically.
    • Field Detail

      • BEHAVIOR_SPEED_UP

        public static final int BEHAVIOR_SPEED_UP
        The transition starts slowly and speed up
        See Also:
        Constant Field Values
      • BEHAVIOR_SPEED_DOWN

        public static final int BEHAVIOR_SPEED_DOWN
        The transition start fast and speed down
        See Also:
        Constant Field Values
      • BEHAVIOR_LINEAR

        public static final int BEHAVIOR_LINEAR
        The transition speed is constant
        See Also:
        Constant Field Values
      • BEHAVIOR_MIDDLE_SLOW

        public static final int BEHAVIOR_MIDDLE_SLOW
        The transition starts fast and ends fast with a slow middle
        See Also:
        Constant Field Values
      • BEHAVIOR_MIDDLE_FAST

        public static final int BEHAVIOR_MIDDLE_FAST
        The transition starts slowly and ends slowly with a fast middle
        See Also:
        Constant Field Values
      • mBehavior

        protected final int mBehavior
        The transition behavior
      • mDurationMs

        protected long mDurationMs
        The transition duration
      • mFilename

        protected String mFilename
        The transition filename
      • mNativeHelper

        protected android.media.videoeditor.MediaArtistNativeHelper mNativeHelper
    • Constructor Detail

      • Transition

        protected Transition(String transitionId,
                  MediaItem afterMediaItem,
                  MediaItem beforeMediaItem,
                  long durationMs,
                  int behavior)
        Constructor
        Parameters:
        transitionId - The transition id
        afterMediaItem - The transition is applied to the end of this media item
        beforeMediaItem - The transition is applied to the beginning of this media item
        durationMs - The duration of the transition in milliseconds
        behavior - The transition behavior
    • Method Detail

      • getId

        public String getId()
        Get the ID of the transition.
        Returns:
        The ID of the transition
      • getAfterMediaItem

        public MediaItem getAfterMediaItem()
        Get the media item at the end of which the transition is applied.
        Returns:
        The media item at the end of which the transition is applied
      • getBeforeMediaItem

        public MediaItem getBeforeMediaItem()
        Get the media item at the beginning of which the transition is applied.
        Returns:
        The media item at the beginning of which the transition is applied
      • setDuration

        public void setDuration(long durationMs)
        Set the duration of the transition.
        Parameters:
        durationMs - the duration of the transition in milliseconds
      • getDuration

        public long getDuration()
        Get the duration of the transition.
        Returns:
        the duration of the transition in milliseconds
      • getMaximumDuration

        public long getMaximumDuration()
        The duration of a transition cannot be greater than half of the minimum duration of the bounding media items.
        Returns:
        The maximum duration of this transition
      • getBehavior

        public int getBehavior()
        Get the behavior of the transition.
        Returns:
        The behavior
      • equals

        public boolean equals(Object object)
        Description copied from class: Object
        Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

        The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

        The general contract for the equals and Object.hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

        Overrides:
        equals in class Object
        Parameters:
        object - the object to compare this instance with.
        Returns:
        true if the specified object is equal to this Object; false otherwise.
        See Also:
        Object.hashCode()
      • hashCode

        public int hashCode()
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

        Note that hash values must not change over time unless information used in equals comparisons also changes.

        See Writing a correct hashCode method if you intend implementing your own hashCode method.

        Overrides:
        hashCode in class Object
        Returns:
        this object's hash code.
        See Also:
        Object.equals(java.lang.Object)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 720 / 158857783. Delta: 0.04163 с