public class ButtonRenderNode extends ParentRenderNode<Button,ButtonStyleRule> implements ActionableRenderNode
RenderNode
implementation for Button
Modifier and Type | Field and Description |
---|---|
protected LayoutRuleset |
layoutRuleset |
childDirty, flexDirection, layers
effects, element, hiddenByLayoutRule, initialLayoutOccurred, innerArea, outerArea, parent, preferredContentHeight, preferredContentWidth, rootNode, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
ButtonRenderNode(ParentRenderNode<?,?> parent,
Button element) |
Modifier and Type | Method and Description |
---|---|
void |
beginAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
protected float |
determinePreferredContentHeight(LayoutState layoutState) |
protected float |
determinePreferredContentWidth(LayoutState layoutState) |
protected ButtonStyleRule |
determineStyleRule(LayoutState layoutState) |
protected float |
determineXOffset(LayoutState layoutState) |
protected float |
determineYOffset(LayoutState layoutState) |
void |
endAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
LayoutRuleset |
getLayoutRuleset() |
ActionableRenderNode |
mouseDown(int screenX,
int screenY,
int pointer,
int button) |
boolean |
mouseMoved(int screenX,
int screenY) |
void |
mouseUp(int screenX,
int screenY,
int pointer,
int button) |
protected void |
renderElement(Graphics g) |
addChild, clearChildren, getElementById, getFlexDirection, interpolate, isDirty, layout, mouseScrolled, removeChild, searchTreeForElementById, setChildDirty, setDirty, setImmediateDirty, setState, update
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, getPreferredContentWidth, getPreferredInnerHeight, getPreferredInnerWidth, 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
protected LayoutRuleset layoutRuleset
public ButtonRenderNode(ParentRenderNode<?,?> parent, Button element)
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class ParentRenderNode<Button,ButtonStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<Button,ButtonStyleRule>
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class ParentRenderNode<Button,ButtonStyleRule>
protected void renderElement(Graphics g)
renderElement
in class ParentRenderNode<Button,ButtonStyleRule>
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class ParentRenderNode<Button,ButtonStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class ParentRenderNode<Button,ButtonStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class ParentRenderNode<Button,ButtonStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class ParentRenderNode<Button,ButtonStyleRule>
protected ButtonStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<Button,ButtonStyleRule>
public void beginAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
beginAction
in interface ActionableRenderNode
public void endAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
endAction
in interface ActionableRenderNode
public LayoutRuleset getLayoutRuleset()
getLayoutRuleset
in class ParentRenderNode<Button,ButtonStyleRule>