public class ScrollBoxRenderNode extends ParentRenderNode<ScrollBox,ScrollBoxStyleRule> implements ActionableRenderNode
RenderNode implementation for ScrollBox| Modifier and Type | Field and Description |
|---|---|
protected CollisionBox |
bottomScrollButton |
protected NodeState |
bottomScrollButtonState |
protected ButtonStyleRule |
bottomScrollButtonStyleRule |
protected float |
boxHeight |
protected float |
contentHeight |
protected CollisionBox |
scrollThumb |
protected float |
scrollThumbPosition |
protected NodeState |
scrollThumbState |
protected ScrollTo |
scrollTo |
protected CollisionBox |
scrollTrack |
protected int |
scrollTranslationY |
protected float |
thumbDragStartY |
protected CollisionBox |
topScrollButton |
protected NodeState |
topScrollButtonState |
protected ButtonStyleRule |
topScrollButtonStyleRule |
cachedDirtyUpdateRequired, layers, layoutRuleseteffects, element, hiddenByLayoutRule, initialLayoutOccurred, initialUpdateOccurred, 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 |
getBoxHeight() |
float |
getPreferredContentWidth() |
float |
getPreferredInnerWidth() |
float |
getScrollContentHeight() |
float |
getScrollThumbPosition() |
boolean |
isEnabled() |
boolean |
isScrollThumbAtBottom() |
boolean |
isScrollThumbAtTop() |
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 |
renderBackground(Graphics g) |
protected void |
renderElement(Graphics g) |
protected void |
renderScrollbar(Graphics g) |
void |
setScrollThumbPosition(float position)
Sets the scroll position
|
void |
update(UiContainerRenderTree uiContainer,
float delta) |
addChild, clearChildren, determinePreferredContentWidth, determineXOffset, determineYOffset, getElementById, getLayoutRuleset, initLayoutRuleset, isDirty, isImmediateDirty, layout, removeChild, searchTreeForElementById, setChildDirty, setDirty, setStateapplyEffect, beginFakeHover, beginHover, clearDirty, contains, dispose, endFakeHover, 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, isChildOfUiContainer, isIncludedInLayout, isIncludedInRender, isInitialLayoutOccurred, isInitialUpdateOccurred, render, setRelativeX, setRelativeY, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetState, setStatebeginHover, contains, endHover, getElement, getIdprotected final CollisionBox topScrollButton
protected final CollisionBox bottomScrollButton
protected final CollisionBox scrollThumb
protected final CollisionBox scrollTrack
protected ScrollTo scrollTo
protected ButtonStyleRule topScrollButtonStyleRule
protected ButtonStyleRule bottomScrollButtonStyleRule
protected float contentHeight
protected float boxHeight
protected float scrollThumbPosition
protected NodeState topScrollButtonState
protected NodeState bottomScrollButtonState
protected NodeState scrollThumbState
protected int scrollTranslationY
protected float thumbDragStartY
public ScrollBoxRenderNode(ParentRenderNode<?,?> parent, ScrollBox row)
public void update(UiContainerRenderTree uiContainer, float delta)
update in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>protected void renderBackground(Graphics g)
renderBackground in class ParentRenderNode<ScrollBox,ScrollBoxStyleRule>protected void renderScrollbar(Graphics g)
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 ActionableRenderNodemouseUp 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 ActionableRenderNodepublic void endAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
endAction in interface ActionableRenderNodeprotected ScrollBoxStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule in class RenderNode<ScrollBox,ScrollBoxStyleRule>public float getScrollThumbPosition()
public void setScrollThumbPosition(float position)
position - A value between 0.0 and 1.0public boolean isScrollThumbAtTop()
public boolean isScrollThumbAtBottom()
public boolean offerScrollTo(ScrollTo scrollTo)
public float getPreferredContentWidth()
getPreferredContentWidth in class RenderNode<ScrollBox,ScrollBoxStyleRule>public float getPreferredInnerWidth()
getPreferredInnerWidth in class RenderNode<ScrollBox,ScrollBoxStyleRule>public float getBoxHeight()
public float getScrollContentHeight()
public boolean isEnabled()
isEnabled in interface ActionableRenderNode