public class ContentButtonRenderNode extends ParentRenderNode<ContentButton,ButtonStyleRule> implements ActionableRenderNode
Modifier and Type | Field and Description |
---|---|
protected LayoutRuleset |
layoutRuleset |
childDirty, layers
effects, element, hiddenByLayoutRule, initialLayoutOccurred, innerArea, outerArea, parent, preferredContentHeight, preferredContentWidth, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
ContentButtonRenderNode(ParentRenderNode<?,?> parent,
ContentButton element) |
Modifier and Type | Method and Description |
---|---|
void |
beginAction() |
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() |
LayoutRuleset |
getLayoutRuleset() |
void |
layout(LayoutState layoutState) |
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, interpolate, isDirty, mouseScrolled, removeChild, setChildDirty, setDirty, setState, update
applyEffect, beginHover, contains, endHover, getContentRenderHeight, getContentRenderWidth, getContentRenderX, getContentRenderY, 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
setState
beginHover, contains, endHover, getId
protected LayoutRuleset layoutRuleset
public ContentButtonRenderNode(ParentRenderNode<?,?> parent, ContentButton element)
public void layout(LayoutState layoutState)
layout
in class ParentRenderNode<ContentButton,ButtonStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class ParentRenderNode<ContentButton,ButtonStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<ContentButton,ButtonStyleRule>
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class ParentRenderNode<ContentButton,ButtonStyleRule>
protected void renderElement(Graphics g)
renderElement
in class ParentRenderNode<ContentButton,ButtonStyleRule>
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class RenderNode<ContentButton,ButtonStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class RenderNode<ContentButton,ButtonStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class RenderNode<ContentButton,ButtonStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class RenderNode<ContentButton,ButtonStyleRule>
protected ButtonStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<ContentButton,ButtonStyleRule>
public void beginAction()
beginAction
in interface ActionableRenderNode
public void endAction()
endAction
in interface ActionableRenderNode
public LayoutRuleset getLayoutRuleset()