public class DefaultInternalNode extends java.lang.Object implements InternalNode, java.lang.Cloneable
InternalNode
.InternalNode.NestedTreeHolder
LithoLayoutResult.NestedTreeHolderResult
Modifier | Constructor and Description |
---|---|
protected |
DefaultInternalNode(ComponentContext componentContext) |
protected |
DefaultInternalNode(ComponentContext componentContext,
YogaNode yogaNode) |
Modifier and Type | Method and Description |
---|---|
void |
addChildAt(InternalNode child,
int index) |
void |
addComponentNeedingPreviousRenderData(java.lang.String globalKey,
Component component) |
void |
addTransition(Transition transition) |
void |
addWorkingRanges(java.util.List<com.facebook.litho.WorkingRangeContainer.Registration> registrations) |
InternalNode |
alignContent(YogaAlign alignContent) |
InternalNode |
alignItems(YogaAlign alignItems) |
void |
alignSelf(YogaAlign alignSelf) |
void |
appendComponent(Component component,
java.lang.String key) |
void |
appendUnresolvedComponent(Component component) |
void |
applyAttributes(TypedArray a) |
boolean |
areCachedMeasuresValid() |
void |
aspectRatio(float aspectRatio) |
void |
assertContextSpecificStyleNotSet()
Crash if the given node has context specific style set.
|
InternalNode |
background(Drawable background) |
InternalNode |
backgroundColor(int backgroundColor) |
InternalNode |
backgroundRes(int resId) |
InternalNode |
border(Border border) |
void |
border(Edges width,
int[] colors,
float[] radii) |
void |
calculateLayout() |
LithoLayoutResult |
calculateLayout(float width,
float height) |
InternalNode |
child(Component.Builder<?> child) |
InternalNode |
child(Component child) |
InternalNode |
child(InternalNode child) |
protected void |
clean()
Release properties which are not longer required for the current layout pass or release
properties which should be reset during reconciliation.
|
protected DefaultInternalNode |
clone() |
DefaultInternalNode |
deepClone() |
InternalNode |
duplicateChildrenStates(boolean duplicateChildrenStates) |
InternalNode |
duplicateParentState(boolean duplicateParentState) |
void |
flex(float flex) |
InternalNode |
flexBasisAuto()
Used by stetho to re-set auto value
|
void |
flexBasisPercent(float percent) |
void |
flexBasisPx(int flexBasis) |
InternalNode |
flexDirection(YogaFlexDirection direction) |
void |
flexGrow(float flexGrow) |
void |
flexShrink(float flexShrink) |
InternalNode |
focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler) |
InternalNode |
foreground(Drawable foreground) |
InternalNode |
foregroundColor(int foregroundColor) |
InternalNode |
foregroundRes(int resId) |
void |
freeze()
Requests the data object to disable mutations of its inputs.
|
InternalNode |
fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler) |
Drawable |
getBackground() |
int[] |
getBorderColors() |
PathEffect |
getBorderPathEffect() |
float[] |
getBorderRadius() |
InternalNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getChildIndex(InternalNode child) |
java.util.List<java.lang.String> |
getComponentKeys()
Return the list of keys of components contributing to this InternalNode.
|
java.util.List<Component> |
getComponents()
Return the list of components contributing to this InternalNode.
|
java.util.Map<java.lang.String,Component> |
getComponentsNeedingPreviousRenderData() |
ComponentContext |
getContext() |
DiffNode |
getDiffNode() |
EventHandler<FocusedVisibleEvent> |
getFocusedHandler() |
Drawable |
getForeground() |
EventHandler<FullImpressionVisibleEvent> |
getFullImpressionHandler() |
Component |
getHeadComponent() |
java.lang.String |
getHeadComponentKey() |
int |
getHeight() |
int |
getImportantForAccessibility() |
EventHandler<InvisibleEvent> |
getInvisibleHandler() |
int |
getLastHeightSpec() |
float |
getLastMeasuredHeight()
The last value the measure funcion associated with this node
Component returned for the
height. |
float |
getLastMeasuredWidth()
The last value the measure funcion associated with this node
Component returned for the
width. |
int |
getLastWidthSpec() |
Paint |
getLayerPaint() |
int |
getLayerType() |
int |
getLayoutBorder(YogaEdge edge) |
float |
getMaxHeight() |
float |
getMaxWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
NodeInfo |
getNodeInfo() |
NodeInfo |
getOrCreateNodeInfo() |
int |
getPaddingBottom() |
int |
getPaddingLeft() |
int |
getPaddingRight() |
int |
getPaddingTop() |
InternalNode |
getParent() |
YogaDirection |
getResolvedLayoutDirection() |
java.lang.String |
getSimpleName() |
StateListAnimator |
getStateListAnimator() |
int |
getStateListAnimatorRes() |
YogaDirection |
getStyleDirection() |
float |
getStyleHeight() |
float |
getStyleWidth() |
Component |
getTailComponent() |
java.lang.String |
getTailComponentKey() |
java.lang.String |
getTestKey()
A unique identifier which may be set for retrieving a component and its bounds when testing.
|
Edges |
getTouchExpansion() |
int |
getTouchExpansionBottom() |
int |
getTouchExpansionLeft() |
int |
getTouchExpansionRight() |
int |
getTouchExpansionTop() |
java.lang.String |
getTransitionGlobalKey() |
java.lang.String |
getTransitionKey() |
Transition.TransitionKeyType |
getTransitionKeyType() |
java.lang.String |
getTransitionOwnerKey() |
java.util.ArrayList<Transition> |
getTransitions() |
EventHandler<UnfocusedVisibleEvent> |
getUnfocusedHandler() |
java.util.List<Component> |
getUnresolvedComponents() |
EventHandler<VisibilityChangedEvent> |
getVisibilityChangedHandler() |
EventHandler<VisibleEvent> |
getVisibleHandler() |
float |
getVisibleHeightRatio() |
float |
getVisibleWidthRatio() |
int |
getWidth() |
java.util.ArrayList<com.facebook.litho.WorkingRangeContainer.Registration> |
getWorkingRangeRegistrations() |
int |
getX() |
int |
getY() |
YogaNode |
getYogaNode() |
boolean |
hasBorderColor() |
boolean |
hasStateListAnimatorResSet() |
boolean |
hasTouchExpansion() |
boolean |
hasTransitionKey() |
boolean |
hasVisibilityHandlers() |
InternalNode |
heightAuto()
Used by stetho to re-set auto value
|
void |
heightPercent(float percent) |
void |
heightPx(int height) |
InternalNode |
importantForAccessibility(int importantForAccessibility) |
InternalNode |
invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler) |
boolean |
isDuplicateChildrenStatesEnabled() |
boolean |
isDuplicateParentStateEnabled() |
boolean |
isForceViewWrapping() |
boolean |
isImportantForAccessibilityIsSet() |
boolean |
isInitialized()
For testing and debugging purposes only where initialization may have not occurred.
|
boolean |
isLayoutDirectionInherit() |
protected boolean |
isPaddingPercent(YogaEdge edge) |
boolean |
isPaddingSet() |
void |
isReferenceBaseline(boolean isReferenceBaseline) |
InternalNode |
justifyContent(YogaJustify justifyContent) |
InternalNode |
layerType(int type,
Paint paint) |
void |
layoutDirection(YogaDirection direction) |
void |
marginAuto(YogaEdge edge) |
void |
marginPercent(YogaEdge edge,
float percent) |
void |
marginPx(YogaEdge edge,
int margin) |
void |
maxHeightPercent(float percent) |
void |
maxHeightPx(int maxHeight) |
void |
maxWidthPercent(float percent) |
void |
maxWidthPx(int maxWidth) |
void |
minHeightPercent(float percent) |
void |
minHeightPx(int minHeight) |
void |
minWidthPercent(float percent) |
void |
minWidthPx(int minWidth) |
void |
paddingPercent(YogaEdge edge,
float percent) |
void |
paddingPx(YogaEdge edge,
int padding) |
void |
positionPercent(YogaEdge edge,
float percent) |
void |
positionPx(YogaEdge edge,
int position) |
void |
positionType(YogaPositionType positionType) |
InternalNode |
reconcile(ComponentContext c,
Component next,
java.lang.String nextKey)
Reconcile returns a new InternalNode tree where only mutated sub-trees are recreated and all
other sub-trees are copied.
|
YogaDirection |
recursivelyResolveLayoutDirection()
Continually walks the node hierarchy until a node returns a non inherited layout direction
|
void |
registerDebugComponent(DebugComponent debugComponent) |
InternalNode |
removeChildAt(int index) |
void |
resetResolvedLayoutProperties()
This method marks all resolved layout property values to undefined.
|
void |
setBorderWidth(YogaEdge edge,
int borderWidth) |
void |
setCachedMeasuresValid(boolean valid) |
void |
setDiffNode(DiffNode diffNode) |
protected void |
setIsPaddingPercent(YogaEdge edge,
boolean isPaddingPercent) |
void |
setLastHeightSpec(int heightSpec) |
void |
setLastMeasuredHeight(float lastMeasuredHeight)
Sets the last value the measure funcion associated with this node
Component returned
for the height. |
void |
setLastMeasuredWidth(float lastMeasuredWidth)
Sets the last value the measure funcion associated with this node
Component returned
for the width. |
void |
setLastWidthSpec(int widthSpec) |
void |
setMeasureFunction(YogaMeasureFunction measureFunction) |
void |
setNodeInfo(NodeInfo nodeInfo) |
void |
setStyleHeightFromSpec(int heightSpec) |
void |
setStyleWidthFromSpec(int widthSpec) |
boolean |
shouldDrawBorders() |
InternalNode |
stateListAnimator(StateListAnimator stateListAnimator) |
InternalNode |
stateListAnimatorRes(int resId) |
InternalNode |
testKey(java.lang.String testKey) |
InternalNode |
touchExpansionPx(YogaEdge edge,
int touchExpansion) |
InternalNode |
transitionKey(java.lang.String key,
java.lang.String ownerKey) |
InternalNode |
transitionKeyType(Transition.TransitionKeyType type) |
InternalNode |
unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler) |
void |
useHeightAsBaseline(boolean useHeightAsBaselineFunction) |
InternalNode |
visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler) |
InternalNode |
visibleHandler(EventHandler<VisibleEvent> visibleHandler) |
InternalNode |
visibleHeightRatio(float visibleHeightRatio) |
InternalNode |
visibleWidthRatio(float visibleWidthRatio) |
InternalNode |
widthAuto() |
void |
widthPercent(float percent) |
void |
widthPx(int width) |
InternalNode |
wrap(YogaWrap wrap) |
InternalNode |
wrapInView() |
protected static final long PFLAG_DUPLICATE_PARENT_STATE_IS_SET
protected static final long PFLAG_PADDING_IS_SET
protected static final long PFLAG_BACKGROUND_IS_SET
protected static final long PFLAG_FOREGROUND_IS_SET
protected static final long PFLAG_VISIBLE_HANDLER_IS_SET
protected static final long PFLAG_FOCUSED_HANDLER_IS_SET
protected static final long PFLAG_FULL_IMPRESSION_HANDLER_IS_SET
protected static final long PFLAG_INVISIBLE_HANDLER_IS_SET
protected static final long PFLAG_UNFOCUSED_HANDLER_IS_SET
protected static final long PFLAG_TRANSITION_KEY_IS_SET
protected static final long PFLAG_BORDER_IS_SET
protected static final long PFLAG_STATE_LIST_ANIMATOR_SET
protected static final long PFLAG_STATE_LIST_ANIMATOR_RES_SET
protected static final long PFLAG_VISIBLE_RECT_CHANGED_HANDLER_IS_SET
protected static final long PFLAG_TRANSITION_KEY_TYPE_IS_SET
protected static final long PFLAG_DUPLICATE_CHILDREN_STATES_IS_SET
protected final int[] mBorderColors
protected final float[] mBorderRadius
protected NodeInfo mNodeInfo
protected EventHandler<VisibleEvent> mVisibleHandler
protected EventHandler<FocusedVisibleEvent> mFocusedHandler
protected EventHandler<UnfocusedVisibleEvent> mUnfocusedHandler
protected EventHandler<FullImpressionVisibleEvent> mFullImpressionHandler
protected EventHandler<InvisibleEvent> mInvisibleHandler
protected EventHandler<VisibilityChangedEvent> mVisibilityChangedHandler
protected Drawable mBackground
protected Drawable mForeground
protected StateListAnimator mStateListAnimator
protected java.lang.String mTransitionKey
protected java.lang.String mTransitionOwnerKey
protected Transition.TransitionKeyType mTransitionKeyType
protected java.lang.String mTestKey
protected Paint mLayerPaint
protected boolean mDuplicateParentState
protected boolean mDuplicateChildrenStates
protected boolean mForceViewWrapping
protected int mLayerType
protected int mImportantForAccessibility
protected int mStateListAnimatorRes
protected float mVisibleHeightRatio
protected float mVisibleWidthRatio
protected long mPrivateFlags
protected DefaultInternalNode(ComponentContext componentContext)
protected DefaultInternalNode(ComponentContext componentContext, YogaNode yogaNode)
public void addChildAt(InternalNode child, int index)
addChildAt
in interface InternalNode
public void addComponentNeedingPreviousRenderData(java.lang.String globalKey, Component component)
addComponentNeedingPreviousRenderData
in interface InternalNode
public void addTransition(Transition transition)
addTransition
in interface InternalNode
public void addWorkingRanges(java.util.List<com.facebook.litho.WorkingRangeContainer.Registration> registrations)
addWorkingRanges
in interface InternalNode
public InternalNode alignContent(YogaAlign alignContent)
alignContent
in interface InternalNode
public InternalNode alignItems(YogaAlign alignItems)
alignItems
in interface InternalNode
public void alignSelf(YogaAlign alignSelf)
public void appendComponent(Component component, java.lang.String key)
appendComponent
in interface InternalNode
public void appendUnresolvedComponent(Component component)
appendUnresolvedComponent
in interface InternalNode
public boolean areCachedMeasuresValid()
areCachedMeasuresValid
in interface LithoLayoutResult
public void aspectRatio(float aspectRatio)
public InternalNode background(Drawable background)
background
in interface InternalNode
public InternalNode backgroundColor(int backgroundColor)
backgroundColor
in interface InternalNode
public InternalNode backgroundRes(int resId)
backgroundRes
in interface InternalNode
public InternalNode border(Border border)
border
in interface InternalNode
public void border(Edges width, int[] colors, float[] radii)
border
in interface InternalNode
public void freeze()
YogaNode.Inputs
freeze
in interface YogaNode.Inputs
public LithoLayoutResult calculateLayout(float width, float height)
calculateLayout
in interface InternalNode
public void calculateLayout()
calculateLayout
in interface InternalNode
public InternalNode child(Component child)
child
in interface InternalNode
public InternalNode child(Component.Builder<?> child)
child
in interface InternalNode
public InternalNode child(InternalNode child)
child
in interface InternalNode
public InternalNode duplicateParentState(boolean duplicateParentState)
duplicateParentState
in interface InternalNode
public InternalNode duplicateChildrenStates(boolean duplicateChildrenStates)
duplicateChildrenStates
in interface InternalNode
public void flex(float flex)
public InternalNode flexBasisAuto()
InternalNode
flexBasisAuto
in interface InternalNode
public void flexBasisPercent(float percent)
public void flexBasisPx(int flexBasis)
public InternalNode flexDirection(YogaFlexDirection direction)
flexDirection
in interface InternalNode
public void flexGrow(float flexGrow)
public void flexShrink(float flexShrink)
public InternalNode focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler)
focusedHandler
in interface InternalNode
public InternalNode foreground(Drawable foreground)
foreground
in interface InternalNode
public InternalNode foregroundColor(int foregroundColor)
foregroundColor
in interface InternalNode
public InternalNode foregroundRes(int resId)
foregroundRes
in interface InternalNode
public InternalNode layerType(int type, Paint paint)
layerType
in interface InternalNode
public int getLayerType()
getLayerType
in interface LithoLayoutResult
public Paint getLayerPaint()
getLayerPaint
in interface LithoLayoutResult
public InternalNode fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler)
fullImpressionHandler
in interface InternalNode
public int[] getBorderColors()
getBorderColors
in interface LithoLayoutResult
public PathEffect getBorderPathEffect()
getBorderPathEffect
in interface LithoLayoutResult
public float[] getBorderRadius()
getBorderRadius
in interface LithoLayoutResult
public InternalNode getChildAt(int index)
getChildAt
in interface LithoLayoutResult
public int getChildCount()
getChildCount
in interface LithoLayoutResult
public int getChildIndex(InternalNode child)
getChildIndex
in interface LithoLayoutResult
public java.util.List<Component> getComponents()
getComponents
in interface LithoLayoutResult
public java.util.List<java.lang.String> getComponentKeys()
getComponentKeys
in interface LithoLayoutResult
public java.util.List<Component> getUnresolvedComponents()
getUnresolvedComponents
in interface LithoLayoutResult
public java.util.Map<java.lang.String,Component> getComponentsNeedingPreviousRenderData()
getComponentsNeedingPreviousRenderData
in interface LithoLayoutResult
public ComponentContext getContext()
getContext
in interface LithoLayoutResult
public DiffNode getDiffNode()
getDiffNode
in interface LithoLayoutResult
public void setDiffNode(DiffNode diffNode)
setDiffNode
in interface InternalNode
public EventHandler<FocusedVisibleEvent> getFocusedHandler()
getFocusedHandler
in interface LithoLayoutResult
public Drawable getForeground()
getForeground
in interface LithoLayoutResult
public EventHandler<FullImpressionVisibleEvent> getFullImpressionHandler()
getFullImpressionHandler
in interface LithoLayoutResult
public Component getHeadComponent()
getHeadComponent
in interface LithoLayoutResult
public java.lang.String getHeadComponentKey()
getHeadComponentKey
in interface LithoLayoutResult
public int getImportantForAccessibility()
getImportantForAccessibility
in interface LithoLayoutResult
public EventHandler<InvisibleEvent> getInvisibleHandler()
getInvisibleHandler
in interface LithoLayoutResult
public int getLastHeightSpec()
getLastHeightSpec
in interface LithoLayoutResult
public void setLastHeightSpec(int heightSpec)
setLastHeightSpec
in interface LithoLayoutResult
public float getLastMeasuredHeight()
Component
returned for the
height. This is used together with LithoLayoutResult.getLastHeightSpec()
to implement
measure caching.getLastMeasuredHeight
in interface LithoLayoutResult
public void setLastMeasuredHeight(float lastMeasuredHeight)
Component
returned
for the height.setLastMeasuredHeight
in interface LithoLayoutResult
public float getLastMeasuredWidth()
Component
returned for the
width. This is used together with LithoLayoutResult.getLastWidthSpec()
to implement measure
caching.getLastMeasuredWidth
in interface LithoLayoutResult
public void setLastMeasuredWidth(float lastMeasuredWidth)
Component
returned
for the width.setLastMeasuredWidth
in interface LithoLayoutResult
public int getLastWidthSpec()
getLastWidthSpec
in interface LithoLayoutResult
public void setLastWidthSpec(int widthSpec)
setLastWidthSpec
in interface LithoLayoutResult
public int getLayoutBorder(YogaEdge edge)
getLayoutBorder
in interface LithoLayoutResult
public float getMaxHeight()
getMaxHeight
in interface LithoLayoutResult
public float getMaxWidth()
getMaxWidth
in interface LithoLayoutResult
public float getMinHeight()
getMinHeight
in interface LithoLayoutResult
public float getMinWidth()
getMinWidth
in interface LithoLayoutResult
public NodeInfo getNodeInfo()
getNodeInfo
in interface LithoLayoutResult
public void setNodeInfo(NodeInfo nodeInfo)
setNodeInfo
in interface InternalNode
public NodeInfo getOrCreateNodeInfo()
getOrCreateNodeInfo
in interface InternalNode
public InternalNode getParent()
getParent
in interface LithoLayoutResult
public Component getTailComponent()
getTailComponent
in interface LithoLayoutResult
public java.lang.String getTailComponentKey()
getTailComponentKey
in interface LithoLayoutResult
public StateListAnimator getStateListAnimator()
getStateListAnimator
in interface LithoLayoutResult
public int getStateListAnimatorRes()
getStateListAnimatorRes
in interface LithoLayoutResult
public YogaDirection getStyleDirection()
getStyleDirection
in interface LithoLayoutResult
public float getStyleHeight()
getStyleHeight
in interface LithoLayoutResult
public float getStyleWidth()
getStyleWidth
in interface LithoLayoutResult
public java.lang.String getTestKey()
getTestKey
in interface LithoLayoutResult
public Edges getTouchExpansion()
getTouchExpansion
in interface LithoLayoutResult
public int getTouchExpansionBottom()
getTouchExpansionBottom
in interface LithoLayoutResult
public int getTouchExpansionLeft()
getTouchExpansionLeft
in interface LithoLayoutResult
public int getTouchExpansionRight()
getTouchExpansionRight
in interface LithoLayoutResult
public int getTouchExpansionTop()
getTouchExpansionTop
in interface LithoLayoutResult
public java.lang.String getTransitionKey()
getTransitionKey
in interface LithoLayoutResult
public java.lang.String getTransitionOwnerKey()
getTransitionOwnerKey
in interface LithoLayoutResult
public Transition.TransitionKeyType getTransitionKeyType()
getTransitionKeyType
in interface LithoLayoutResult
public java.util.ArrayList<Transition> getTransitions()
getTransitions
in interface LithoLayoutResult
public java.lang.String getTransitionGlobalKey()
getTransitionGlobalKey
in interface LithoLayoutResult
public EventHandler<UnfocusedVisibleEvent> getUnfocusedHandler()
getUnfocusedHandler
in interface LithoLayoutResult
public EventHandler<VisibilityChangedEvent> getVisibilityChangedHandler()
getVisibilityChangedHandler
in interface LithoLayoutResult
public EventHandler<VisibleEvent> getVisibleHandler()
getVisibleHandler
in interface LithoLayoutResult
public float getVisibleHeightRatio()
getVisibleHeightRatio
in interface LithoLayoutResult
public float getVisibleWidthRatio()
getVisibleWidthRatio
in interface LithoLayoutResult
public java.util.ArrayList<com.facebook.litho.WorkingRangeContainer.Registration> getWorkingRangeRegistrations()
getWorkingRangeRegistrations
in interface LithoLayoutResult
public YogaNode getYogaNode()
getYogaNode
in interface LithoLayoutResult
public boolean hasBorderColor()
hasBorderColor
in interface LithoLayoutResult
public boolean hasStateListAnimatorResSet()
hasStateListAnimatorResSet
in interface LithoLayoutResult
public boolean hasTouchExpansion()
hasTouchExpansion
in interface LithoLayoutResult
public boolean hasTransitionKey()
hasTransitionKey
in interface LithoLayoutResult
public boolean hasVisibilityHandlers()
hasVisibilityHandlers
in interface LithoLayoutResult
public InternalNode heightAuto()
InternalNode
heightAuto
in interface InternalNode
public void heightPercent(float percent)
public void heightPx(int height)
public InternalNode importantForAccessibility(int importantForAccessibility)
importantForAccessibility
in interface InternalNode
public InternalNode invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler)
invisibleHandler
in interface InternalNode
public boolean isDuplicateParentStateEnabled()
isDuplicateParentStateEnabled
in interface LithoLayoutResult
public boolean isDuplicateChildrenStatesEnabled()
isDuplicateChildrenStatesEnabled
in interface LithoLayoutResult
public boolean isForceViewWrapping()
isForceViewWrapping
in interface LithoLayoutResult
public boolean isImportantForAccessibilityIsSet()
isImportantForAccessibilityIsSet
in interface LithoLayoutResult
public boolean isInitialized()
isInitialized
in interface LithoLayoutResult
public boolean isLayoutDirectionInherit()
isLayoutDirectionInherit
in interface LithoLayoutResult
public void isReferenceBaseline(boolean isReferenceBaseline)
public InternalNode justifyContent(YogaJustify justifyContent)
justifyContent
in interface InternalNode
public void layoutDirection(YogaDirection direction)
public void marginAuto(YogaEdge edge)
public void marginPercent(YogaEdge edge, float percent)
public void marginPx(YogaEdge edge, int margin)
public void maxHeightPercent(float percent)
public void maxHeightPx(int maxHeight)
public void maxWidthPercent(float percent)
public void maxWidthPx(int maxWidth)
public void minHeightPercent(float percent)
public void minHeightPx(int minHeight)
public void minWidthPercent(float percent)
public void minWidthPx(int minWidth)
public void paddingPercent(YogaEdge edge, float percent)
public void paddingPx(YogaEdge edge, int padding)
public void positionPercent(YogaEdge edge, float percent)
public void positionPx(YogaEdge edge, int position)
public void positionType(YogaPositionType positionType)
public YogaDirection recursivelyResolveLayoutDirection()
recursivelyResolveLayoutDirection
in interface LithoLayoutResult
public void registerDebugComponent(DebugComponent debugComponent)
registerDebugComponent
in interface InternalNode
public InternalNode removeChildAt(int index)
removeChildAt
in interface InternalNode
public void resetResolvedLayoutProperties()
resetResolvedLayoutProperties
in interface InternalNode
public void setBorderWidth(YogaEdge edge, int borderWidth)
setBorderWidth
in interface InternalNode
public void setCachedMeasuresValid(boolean valid)
setCachedMeasuresValid
in interface InternalNode
public void setMeasureFunction(YogaMeasureFunction measureFunction)
setMeasureFunction
in interface InternalNode
public void setStyleHeightFromSpec(int heightSpec)
setStyleHeightFromSpec
in interface InternalNode
public void setStyleWidthFromSpec(int widthSpec)
setStyleWidthFromSpec
in interface InternalNode
public boolean shouldDrawBorders()
shouldDrawBorders
in interface LithoLayoutResult
public InternalNode stateListAnimator(StateListAnimator stateListAnimator)
stateListAnimator
in interface InternalNode
public InternalNode stateListAnimatorRes(int resId)
stateListAnimatorRes
in interface InternalNode
public InternalNode testKey(java.lang.String testKey)
testKey
in interface InternalNode
public InternalNode touchExpansionPx(YogaEdge edge, int touchExpansion)
touchExpansionPx
in interface InternalNode
public InternalNode transitionKey(java.lang.String key, java.lang.String ownerKey)
transitionKey
in interface InternalNode
public InternalNode transitionKeyType(Transition.TransitionKeyType type)
transitionKeyType
in interface InternalNode
public InternalNode unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler)
unfocusedHandler
in interface InternalNode
public void useHeightAsBaseline(boolean useHeightAsBaselineFunction)
public InternalNode visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler)
visibilityChangedHandler
in interface InternalNode
public InternalNode visibleHandler(EventHandler<VisibleEvent> visibleHandler)
visibleHandler
in interface InternalNode
public InternalNode visibleHeightRatio(float visibleHeightRatio)
visibleHeightRatio
in interface InternalNode
public InternalNode visibleWidthRatio(float visibleWidthRatio)
visibleWidthRatio
in interface InternalNode
public InternalNode widthAuto()
widthAuto
in interface InternalNode
public void widthPercent(float percent)
public void widthPx(int width)
public InternalNode wrap(YogaWrap wrap)
wrap
in interface InternalNode
public InternalNode wrapInView()
wrapInView
in interface InternalNode
public int getX()
getX
in interface ComponentLayout
public int getY()
getY
in interface ComponentLayout
public int getWidth()
getWidth
in interface ComponentLayout
public int getHeight()
getHeight
in interface ComponentLayout
public int getPaddingTop()
getPaddingTop
in interface ComponentLayout
public int getPaddingRight()
getPaddingRight
in interface ComponentLayout
public int getPaddingBottom()
getPaddingBottom
in interface ComponentLayout
public int getPaddingLeft()
getPaddingLeft
in interface ComponentLayout
public boolean isPaddingSet()
isPaddingSet
in interface ComponentLayout
public Drawable getBackground()
getBackground
in interface ComponentLayout
public YogaDirection getResolvedLayoutDirection()
getResolvedLayoutDirection
in interface ComponentLayout
public void applyAttributes(TypedArray a)
applyAttributes
in interface InternalNode
public void assertContextSpecificStyleNotSet()
assertContextSpecificStyleNotSet
in interface LithoLayoutResult
public DefaultInternalNode deepClone()
deepClone
in interface InternalNode
public java.lang.String getSimpleName()
getSimpleName
in interface LithoLayoutResult
public InternalNode reconcile(ComponentContext c, Component next, java.lang.String nextKey)
InternalNode
reconcile
in interface InternalNode
c
- The new ComponentContext.next
- The new component to reconcile against.protected DefaultInternalNode clone()
clone
in class java.lang.Object
protected boolean isPaddingPercent(YogaEdge edge)
protected void setIsPaddingPercent(YogaEdge edge, boolean isPaddingPercent)
protected void clean()