public class WidgetFrame


Utility class to encapsulate layout of a widget

Summary

Public fields

float
int
float
int
String
static float
float
float
int
float
float
float
float
float
int
float
float
float
int
ConstraintWidget

Public constructors

Public methods

void
addCustomColor(String name, int color)
void
addCustomFloat(String name, float value)
float
float
boolean

Return whether this WidgetFrame contains a custom property of the given name.

CustomVariable

Get the custom attribute given Nam

Set<String>

Get the known custom Attributes names

int
float
String
TypedBundle

get the property bundle associated with MotionAttributes

int
static void
interpolate(
    int parentWidth,
    int parentHeight,
    WidgetFrame frame,
    WidgetFrame start,
    WidgetFrame end,
    Transition transition,
    float progress
)
boolean
StringBuilder
StringBuilder
serialize(StringBuilder ret, boolean sendPhoneOrientation)

If true also send the phone orientation

void
setCustomAttribute(String name, int type, boolean value)
void
setCustomAttribute(String name, int type, float value)
void
setCustomAttribute(String name, int type, int value)
void
setCustomAttribute(String name, int type, String value)
void
setCustomValue(CustomAttribute valueAt, float[] mTempValues)
boolean
setValue(String key, CLElement value)
WidgetFrame
WidgetFrame
void
int

Public fields

alpha

Added in 1.1.0
public float alpha

bottom

Added in 1.1.0
public int bottom

interpolatedPos

Added in 1.1.0
public float interpolatedPos

left

Added in 1.1.0
public int left

name

Added in 1.1.0
public String name

phone_orientation

Added in 1.1.0
public static float phone_orientation

pivotX

Added in 1.1.0
public float pivotX

pivotY

Added in 1.1.0
public float pivotY

right

Added in 1.1.0
public int right

rotationX

Added in 1.1.0
public float rotationX

rotationY

Added in 1.1.0
public float rotationY

rotationZ

Added in 1.1.0
public float rotationZ

scaleX

Added in 1.1.0
public float scaleX

scaleY

Added in 1.1.0
public float scaleY

top

Added in 1.1.0
public int top

translationX

Added in 1.1.0
public float translationX

translationY

Added in 1.1.0
public float translationY

translationZ

Added in 1.1.0
public float translationZ

visibility

Added in 1.1.0
public int visibility

widget

Added in 1.1.0
public ConstraintWidget widget

Public constructors

WidgetFrame

Added in 1.1.0
public WidgetFrame()

WidgetFrame

Added in 1.1.0
public WidgetFrame(WidgetFrame frame)

WidgetFrame

Added in 1.1.0
public WidgetFrame(ConstraintWidget widget)

Public methods

addCustomColor

Added in 1.1.0
public void addCustomColor(String name, int color)

addCustomFloat

Added in 1.1.0
public void addCustomFloat(String name, float value)

centerX

Added in 1.1.0
public float centerX()

centerY

Added in 1.1.0
public float centerY()

containsCustom

Added in 1.1.0
public boolean containsCustom(@NonNull String name)

Return whether this WidgetFrame contains a custom property of the given name.

getCustomAttribute

Added in 1.1.0
public CustomVariable getCustomAttribute(String name)

Get the custom attribute given Nam

Parameters
String name

Name of the custom attribut

Returns
CustomVariable

The customAttribute

getCustomAttributeNames

Added in 1.1.0
public Set<StringgetCustomAttributeNames()

Get the known custom Attributes names

Returns
Set<String>

set of custom attribute names

getCustomColor

Added in 1.1.0
public int getCustomColor(String name)

getCustomFloat

Added in 1.1.0
public float getCustomFloat(String name)

getId

Added in 1.1.0
public String getId()

getMotionProperties

Added in 1.1.0
public TypedBundle getMotionProperties()

get the property bundle associated with MotionAttributes

Returns
TypedBundle

the property bundle associated with MotionAttributes or null

height

Added in 1.1.0
public int height()

interpolate

Added in 1.1.0
public static void interpolate(
    int parentWidth,
    int parentHeight,
    WidgetFrame frame,
    WidgetFrame start,
    WidgetFrame end,
    Transition transition,
    float progress
)

isDefaultTransform

Added in 1.1.0
public boolean isDefaultTransform()

serialize

Added in 1.1.0
public StringBuilder serialize(StringBuilder ret)

serialize

Added in 1.1.0
public StringBuilder serialize(StringBuilder ret, boolean sendPhoneOrientation)

If true also send the phone orientation

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, boolean value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, float value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, int value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, String value)

setCustomValue

Added in 1.1.0
public void setCustomValue(CustomAttribute valueAt, float[] mTempValues)

setValue

Added in 1.1.0
public boolean setValue(String key, CLElement value)

update

Added in 1.1.0
public WidgetFrame update()

update

Added in 1.1.0
public WidgetFrame update(ConstraintWidget widget)

updateAttributes

Added in 1.1.0
public void updateAttributes(WidgetFrame frame)

width

Added in 1.1.0
public int width()