public class ScrollBoxRenderNode extends ParentRenderNode<ScrollBox,ScrollBoxStyleRule> implements ActionableRenderNode
RenderNode
implementation for ScrollBox
childDirty, flexDirection, layers, layoutRuleset
effects, element, hiddenByLayoutRule, initialLayoutOccurred, innerArea, outerArea, parent, preferredContentHeight, preferredContentWidth, rootNode, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
ScrollBoxRenderNode(ParentRenderNode<?,?> parent,
ScrollBox row) |
Modifier and Type | Method and Description |
---|---|
void |
beginAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
protected float |
determinePreferredContentHeight(LayoutState layoutState) |
protected ScrollBoxStyleRule |
determineStyleRule(LayoutState layoutState) |
void |
endAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
float |
getPreferredContentWidth() |
float |
getPreferredInnerWidth() |
float |
getScrollThumbPosition() |
void |
interpolate(float alpha) |
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 |
mouseUp(int screenX,
int screenY,
int pointer,
int button) |
boolean |
offerScrollTo(ScrollTo scrollTo) |
protected void |
renderElement(Graphics g) |
void |
setScrollThumbPosition(float position) |
void |
update(UiContainerRenderTree uiContainer,
float delta) |
addChild, clearChildren, determinePreferredContentWidth, determineXOffset, determineYOffset, getElementById, getFlexDirection, getLayoutRuleset, isDirty, layout, removeChild, searchTreeForElementById, setChildDirty, setDirty, setImmediateDirty, setState
applyEffect, beginHover, contains, 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, getPreferredInnerHeight, getPreferredOuterHeight, getPreferredOuterWidth, getRelativeX, getRelativeY, getState, getStyle, getXOffset, getYOffset, getZIndex, isIncludedInLayout, isIncludedInRender, render, setRelativeX, setRelativeY, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getState, setState
beginHover, contains, endHover, getElement, getId
public ScrollBoxRenderNode(ParentRenderNode<?,?> parent, ScrollBox row)
public void update(UiContainerRenderTree uiContainer, float delta)
update
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
public void interpolate(float alpha)
interpolate
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
protected void renderElement(Graphics g)
renderElement
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<ScrollBox,ScrollBoxStyleRule>
public boolean mouseScrolled(int screenX, int screenY, float amount)
mouseScrolled
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>
public void beginAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
beginAction
in interface ActionableRenderNode
public void endAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
endAction
in interface ActionableRenderNode
protected ScrollBoxStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<ScrollBox,ScrollBoxStyleRule>
public float getScrollThumbPosition()
public void setScrollThumbPosition(float position)
public boolean offerScrollTo(ScrollTo scrollTo)
public float getPreferredContentWidth()
getPreferredContentWidth
in class RenderNode<ScrollBox,ScrollBoxStyleRule>
public float getPreferredInnerWidth()
getPreferredInnerWidth
in class RenderNode<ScrollBox,ScrollBoxStyleRule>