public class UIConstraint
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UIConstraint.UNIT |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ATT_BOTTOM |
protected static java.lang.String |
ATT_CENTER_X |
protected static java.lang.String |
ATT_CENTER_Y |
protected static java.lang.String |
ATT_CHILDREN_GAP |
protected static java.lang.String |
ATT_HEIGHT |
protected static java.lang.String |
ATT_LEFT |
protected static java.lang.String |
ATT_RIGHT |
protected static java.lang.String |
ATT_TOP |
protected static java.lang.String |
ATT_WIDTH |
protected static java.lang.String |
ATT_X |
protected static java.lang.String |
ATT_Y |
float |
bottom |
UIConstraint.UNIT |
bottomUnit |
float |
centerX |
UIConstraint.UNIT |
centerXUnit |
float |
centerY |
UIConstraint.UNIT |
centerYUnit |
float |
childrenGap |
UIConstraint.UNIT |
childrenGapUnit |
float |
height |
UIConstraint.UNIT |
heightUnit |
float |
left |
UIConstraint.UNIT |
leftUnit |
float |
right |
UIConstraint.UNIT |
rightUnit |
float |
top |
UIConstraint.UNIT |
topUnit |
protected static java.lang.String |
VAL_PERCENT |
protected static java.lang.String |
VAL_WRAP_CONTENT |
float |
width |
UIConstraint.UNIT |
widthUnit |
float |
x |
UIConstraint.UNIT |
xUnit |
float |
y |
UIConstraint.UNIT |
yUnit |
Constructor and Description |
---|
UIConstraint() |
UIConstraint(XmlPullParser parser,
UIManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
apply(DisplayObject target,
Container container) |
protected UIConstraint.UNIT |
getAttributeUnit(XmlPullParser parser,
java.lang.String att) |
protected float |
getAttributeValue(XmlPullParser parser,
java.lang.String att) |
boolean |
hasAttributes() |
void |
mergeAttributes(XmlPullParser parser) |
void |
setAttributes(XmlPullParser parser,
UIManager manager) |
protected static final java.lang.String ATT_X
protected static final java.lang.String ATT_Y
protected static final java.lang.String ATT_HEIGHT
protected static final java.lang.String ATT_WIDTH
protected static final java.lang.String ATT_LEFT
protected static final java.lang.String ATT_RIGHT
protected static final java.lang.String ATT_TOP
protected static final java.lang.String ATT_BOTTOM
protected static final java.lang.String ATT_CENTER_X
protected static final java.lang.String ATT_CENTER_Y
protected static final java.lang.String ATT_CHILDREN_GAP
protected static final java.lang.String VAL_WRAP_CONTENT
protected static final java.lang.String VAL_PERCENT
public float width
public UIConstraint.UNIT widthUnit
public float height
public UIConstraint.UNIT heightUnit
public float x
public UIConstraint.UNIT xUnit
public float y
public UIConstraint.UNIT yUnit
public float left
public UIConstraint.UNIT leftUnit
public float right
public UIConstraint.UNIT rightUnit
public float top
public UIConstraint.UNIT topUnit
public float bottom
public UIConstraint.UNIT bottomUnit
public float centerX
public UIConstraint.UNIT centerXUnit
public float centerY
public UIConstraint.UNIT centerYUnit
public float childrenGap
public UIConstraint.UNIT childrenGapUnit
public UIConstraint()
public UIConstraint(XmlPullParser parser, UIManager manager)
public void setAttributes(XmlPullParser parser, UIManager manager)
public void mergeAttributes(XmlPullParser parser)
protected float getAttributeValue(XmlPullParser parser, java.lang.String att)
protected UIConstraint.UNIT getAttributeUnit(XmlPullParser parser, java.lang.String att)
public boolean hasAttributes()
public void apply(DisplayObject target, Container container)