Class MotionWidget

  • All Implemented Interfaces:
    TypedValues

    public class MotionWidget
    extends java.lang.Object
    implements TypedValues
    • Constructor Detail

      • MotionWidget

        public MotionWidget()
    • Method Detail

      • findViewById

        public MotionWidget findViewById​(int mTransformPivotTarget)
      • setVisibility

        public void setVisibility​(int visibility)
      • getName

        public java.lang.String getName()
      • layout

        public void layout​(int l,
                           int t,
                           int r,
                           int b)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setBounds

        public void setBounds​(int left,
                              int top,
                              int right,
                              int bottom)
      • updateMotion

        public void updateMotion​(TypedValues toUpdate)
        This populates the motion attributes from widgetFrame to the MotionWidget
      • setValue

        public boolean setValue​(int id,
                                int value)
        Description copied from interface: TypedValues
        Used to set integer values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int id,
                                float value)
        Description copied from interface: TypedValues
        Used to set float values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int id,
                                java.lang.String value)
        Description copied from interface: TypedValues
        Used to set String values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int id,
                                boolean value)
        Description copied from interface: TypedValues
        Used to set boolean values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValueMotion

        public boolean setValueMotion​(int id,
                                      int value)
      • setValueMotion

        public boolean setValueMotion​(int id,
                                      java.lang.String value)
      • setValueMotion

        public boolean setValueMotion​(int id,
                                      float value)
      • setValueAttributes

        public boolean setValueAttributes​(int id,
                                          float value)
        Sets the attributes
      • getValueAttributes

        public float getValueAttributes​(int id)
        Sets the attributes
      • getId

        public int getId​(java.lang.String name)
        Specified by:
        getId in interface TypedValues
      • getTop

        public int getTop()
      • getLeft

        public int getLeft()
      • getBottom

        public int getBottom()
      • getRight

        public int getRight()
      • setPivotX

        public void setPivotX​(float px)
      • setPivotY

        public void setPivotY​(float py)
      • getRotationX

        public float getRotationX()
      • setRotationX

        public void setRotationX​(float rotationX)
      • getRotationY

        public float getRotationY()
      • setRotationY

        public void setRotationY​(float rotationY)
      • getRotationZ

        public float getRotationZ()
      • setRotationZ

        public void setRotationZ​(float rotationZ)
      • getTranslationX

        public float getTranslationX()
      • setTranslationX

        public void setTranslationX​(float translationX)
      • getTranslationY

        public float getTranslationY()
      • setTranslationY

        public void setTranslationY​(float translationY)
      • setTranslationZ

        public void setTranslationZ​(float tz)
      • getTranslationZ

        public float getTranslationZ()
      • getScaleX

        public float getScaleX()
      • setScaleX

        public void setScaleX​(float scaleX)
      • getScaleY

        public float getScaleY()
      • setScaleY

        public void setScaleY​(float scaleY)
      • getVisibility

        public int getVisibility()
      • getPivotX

        public float getPivotX()
      • getPivotY

        public float getPivotY()
      • getAlpha

        public float getAlpha()
      • getX

        public int getX()
      • getY

        public int getY()
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getCustomAttributeNames

        public java.util.Set<java.lang.String> getCustomAttributeNames()
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       float value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       int value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       boolean value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       java.lang.String value)
      • getCustomAttribute

        public CustomVariable getCustomAttribute​(java.lang.String name)
      • setInterpolatedValue

        public void setInterpolatedValue​(CustomAttribute attribute,
                                         float[] mCache)