public class ImageButtonRenderNode extends RenderNode<ImageButton,ButtonStyleRule> implements ActionableRenderNode
currentArea, effects, element, hiddenByLayoutRule, initialLayoutOccurred, parent, preferredContentHeight, preferredContentWidth, style, targetArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
ImageButtonRenderNode(ParentRenderNode<?,?> parent,
ImageButton 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() |
void |
layout(LayoutState layoutState) |
ActionableRenderNode |
mouseDown(int screenX,
int screenY,
int pointer,
int button) |
void |
mouseUp(int screenX,
int screenY,
int pointer,
int button) |
protected void |
renderElement(Graphics g) |
applyEffect, beginHover, contains, endHover, getElementById, getHeight, getId, getParent, getPreferredContentHeight, getPreferredContentWidth, getPreferredInnerHeight, getPreferredInnerWidth, getPreferredOuterHeight, getPreferredOuterWidth, getRelativeX, getRelativeY, getRenderHeight, getRenderWidth, getRenderX, getRenderY, getState, getStyle, getWidth, getX, getXOffset, getY, getYOffset, getZIndex, interpolate, isDirty, isIncludedInLayout, isIncludedInRender, mouseMoved, render, setDirty, setRelativeX, setRelativeY, setState, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setState
beginHover, contains, endHover, getId
public ImageButtonRenderNode(ParentRenderNode<?,?> parent, ImageButton element)
public void layout(LayoutState layoutState)
layout
in class RenderNode<ImageButton,ButtonStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in class RenderNode<ImageButton,ButtonStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<ImageButton,ButtonStyleRule>
protected void renderElement(Graphics g)
renderElement
in class RenderNode<ImageButton,ButtonStyleRule>
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class RenderNode<ImageButton,ButtonStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class RenderNode<ImageButton,ButtonStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class RenderNode<ImageButton,ButtonStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class RenderNode<ImageButton,ButtonStyleRule>
protected ButtonStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<ImageButton,ButtonStyleRule>
public void beginAction()
beginAction
in interface ActionableRenderNode
public void endAction()
endAction
in interface ActionableRenderNode