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 Rectangle |
cachedClip |
protected boolean |
childDirty |
protected FlexDirection |
flexDirection |
protected LayoutRuleset |
horizontalLayoutRuleset |
protected java.util.NavigableMap<java.lang.Integer,RenderLayer> |
layers |
protected LayoutRuleset |
verticalLayoutRuleset |
effects, element, hiddenByLayoutRule, initialLayoutOccurred, 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 |
getHorizontalLayoutRuleset() |
LayoutRuleset |
getVerticalLayoutRuleset() |
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 final Rectangle cachedClip
protected boolean childDirty
protected FlexDirection flexDirection
protected LayoutRuleset horizontalLayoutRuleset
protected LayoutRuleset verticalLayoutRuleset
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 getHorizontalLayoutRuleset()
public LayoutRuleset getVerticalLayoutRuleset()
public FlexDirection getFlexDirection()