public abstract class ParentRenderNode<T extends ParentUiElement,S extends ParentStyleRule> extends RenderNode<T,S>
RenderNode
implementations that contains child nodesModifier and Type | Field and Description |
---|---|
protected boolean |
childDirty |
protected FlexDirection |
flexDirection |
protected java.util.NavigableMap<java.lang.Integer,RenderLayer> |
layers |
protected LayoutRuleset |
layoutRuleset |
effects, element, hiddenByLayoutRule, initialLayoutOccurred, innerArea, outerArea, parent, preferredContentHeight, preferredContentWidth, rootNode, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
ParentRenderNode(ParentRenderNode<?,?> parent,
T element) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(RenderNode<?,?> child) |
void |
clearChildren() |
protected float |
determinePreferredContentHeight(LayoutState layoutState) |
protected float |
determinePreferredContentWidth(LayoutState layoutState) |
protected float |
determineXOffset(LayoutState layoutState) |
protected float |
determineYOffset(LayoutState layoutState) |
RenderNode<?,?> |
getElementById(java.lang.String id) |
FlexDirection |
getFlexDirection() |
LayoutRuleset |
getLayoutRuleset() |
void |
interpolate(float alpha) |
boolean |
isDirty() |
void |
layout(LayoutState layoutState) |
ActionableRenderNode |
mouseDown(int screenX,
int screenY,
int pointer,
int button) |
boolean |
mouseMoved(int screenX,
int screenY) |
boolean |
mouseScrolled(int screenX,
int screenY,
float amount) |
void |
removeChild(RenderNode<?,?> child) |
protected void |
renderElement(Graphics g) |
RenderNode<?,?> |
searchTreeForElementById(java.lang.String id) |
void |
setChildDirty(boolean childDirty) |
void |
setDirty(boolean dirty) |
protected void |
setImmediateDirty(boolean dirty) |
void |
setState(NodeState state) |
void |
update(UiContainerRenderTree uiContainer,
float delta) |
applyEffect, beginHover, contains, determineStyleRule, endHover, getContentRenderHeight, getContentRenderWidth, getContentRenderX, getContentRenderY, getElement, getId, getInnerHeight, getInnerRenderHeight, getInnerRenderWidth, getInnerRenderX, getInnerRenderY, getInnerWidth, getInnerX, getInnerY, getOuterHeight, getOuterRenderHeight, getOuterRenderWidth, getOuterRenderX, getOuterRenderY, getOuterWidth, getOuterX, getOuterY, getParent, getPreferredContentHeight, getPreferredContentWidth, getPreferredInnerHeight, getPreferredInnerWidth, getPreferredOuterHeight, getPreferredOuterWidth, getRelativeX, getRelativeY, getState, getStyle, getXOffset, getYOffset, getZIndex, isIncludedInLayout, isIncludedInRender, mouseUp, render, setRelativeX, setRelativeY, toString
protected final java.util.NavigableMap<java.lang.Integer,RenderLayer> layers
protected boolean childDirty
protected FlexDirection flexDirection
protected LayoutRuleset layoutRuleset
public ParentRenderNode(ParentRenderNode<?,?> parent, T element)
public void update(UiContainerRenderTree uiContainer, float delta)
update
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public void interpolate(float alpha)
interpolate
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected void renderElement(Graphics g)
renderElement
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public void layout(LayoutState layoutState)
layout
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public boolean mouseScrolled(int screenX, int screenY, float amount)
mouseScrolled
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public void addChild(RenderNode<?,?> child)
public void removeChild(RenderNode<?,?> child)
public void clearChildren()
public boolean isDirty()
isDirty
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public void setDirty(boolean dirty)
setDirty
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
protected void setImmediateDirty(boolean dirty)
public void setChildDirty(boolean childDirty)
public void setState(NodeState state)
setState
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public RenderNode<?,?> getElementById(java.lang.String id)
getElementById
in class RenderNode<T extends ParentUiElement,S extends ParentStyleRule>
public RenderNode<?,?> searchTreeForElementById(java.lang.String id)
public LayoutRuleset getLayoutRuleset()
public FlexDirection getFlexDirection()