public class RadioButtonRenderNode extends RenderNode<RadioButton,RadioButtonStyleRule> implements ActionableRenderNode
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.graphics.g2d.BitmapFontCache |
bitmapFontCache |
protected java.util.List<Rectangle> |
buttonRenderPositions |
protected float |
calculatedHeight |
protected static com.badlogic.gdx.graphics.g2d.BitmapFont |
DEFAULT_FONT |
protected static com.badlogic.gdx.graphics.g2d.GlyphLayout |
GLYPH_LAYOUT |
protected int |
hoveredIndex |
protected int |
lineHeight |
protected java.lang.String |
previousFont |
effects, element, hiddenByLayoutRule, initialLayoutOccurred, outerArea, parent, preferredContentHeight, preferredContentWidth, rootNode, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
RadioButtonRenderNode(ParentRenderNode<?,?> parent,
RadioButton element) |
Modifier and Type | Method and Description |
---|---|
void |
beginAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
protected float |
determinePreferredContentHeight(LayoutState layoutState) |
protected float |
determinePreferredContentWidth(LayoutState layoutState) |
protected RadioButtonStyleRule |
determineStyleRule(LayoutState layoutState) |
protected float |
determineXOffset(LayoutState layoutState) |
protected float |
determineYOffset(LayoutState layoutState) |
void |
endAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
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) |
applyEffect, beginHover, contains, endHover, getContentRenderHeight, getContentRenderWidth, getContentRenderX, getContentRenderY, getElement, getElementById, 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, interpolate, isDirty, isIncludedInLayout, isIncludedInRender, layout, mouseScrolled, render, setDirty, setRelativeX, setRelativeY, setState, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getState, setState
beginHover, contains, endHover, getElement, getId
protected static final com.badlogic.gdx.graphics.g2d.GlyphLayout GLYPH_LAYOUT
protected static final com.badlogic.gdx.graphics.g2d.BitmapFont DEFAULT_FONT
protected final java.util.List<Rectangle> buttonRenderPositions
protected com.badlogic.gdx.graphics.g2d.BitmapFontCache bitmapFontCache
protected java.lang.String previousFont
protected int lineHeight
protected float calculatedHeight
protected int hoveredIndex
public RadioButtonRenderNode(ParentRenderNode<?,?> parent, RadioButton element)
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class RenderNode<RadioButton,RadioButtonStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class RenderNode<RadioButton,RadioButtonStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<RadioButton,RadioButtonStyleRule>
protected void renderElement(Graphics g)
renderElement
in class RenderNode<RadioButton,RadioButtonStyleRule>
public void beginAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
beginAction
in interface ActionableRenderNode
public void endAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
endAction
in interface ActionableRenderNode
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class RenderNode<RadioButton,RadioButtonStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class RenderNode<RadioButton,RadioButtonStyleRule>
protected RadioButtonStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<RadioButton,RadioButtonStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class RenderNode<RadioButton,RadioButtonStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class RenderNode<RadioButton,RadioButtonStyleRule>