Class WidgetFrame


  • public class WidgetFrame
    extends java.lang.Object
    Utility class to encapsulate layout of a widget
    • Field Detail

      • left

        public int left
      • top

        public int top
      • right

        public int right
      • bottom

        public int bottom
      • pivotX

        public float pivotX
      • pivotY

        public float pivotY
      • rotationX

        public float rotationX
      • rotationY

        public float rotationY
      • rotationZ

        public float rotationZ
      • translationX

        public float translationX
      • translationY

        public float translationY
      • translationZ

        public float translationZ
      • phone_orientation

        public static float phone_orientation
      • scaleX

        public float scaleX
      • scaleY

        public float scaleY
      • alpha

        public float alpha
      • interpolatedPos

        public float interpolatedPos
      • visibility

        public int visibility
      • mCustom

        public final java.util.HashMap<java.lang.String,​CustomVariable> mCustom
      • name

        public java.lang.String name
    • Constructor Detail

      • WidgetFrame

        public WidgetFrame()
      • WidgetFrame

        public WidgetFrame​(WidgetFrame frame)
    • Method Detail

      • width

        public int width()
      • height

        public int height()
      • updateAttributes

        public void updateAttributes​(WidgetFrame frame)
      • isDefaultTransform

        public boolean isDefaultTransform()
      • centerX

        public float centerX()
      • centerY

        public float centerY()
      • addCustomColor

        public void addCustomColor​(java.lang.String name,
                                   int color)
      • getCustomColor

        public int getCustomColor​(java.lang.String name)
      • addCustomFloat

        public void addCustomFloat​(java.lang.String name,
                                   float value)
      • getCustomFloat

        public float getCustomFloat​(java.lang.String name)
      • 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)
      • getCustomAttributeNames

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

        public java.lang.String getId()
      • serialize

        public java.lang.StringBuilder serialize​(java.lang.StringBuilder ret)
      • serialize

        public java.lang.StringBuilder serialize​(java.lang.StringBuilder ret,
                                                 boolean sendPhoneOrientation)
        If true also send the phone orientation
      • setCustomValue

        public void setCustomValue​(CustomAttribute valueAt,
                                   float[] mTempValues)
      • getMotionProperties

        public TypedBundle getMotionProperties()
        get the property bundle associated with MotionAttributes
        Returns:
        the property bundle associated with MotionAttributes or null