public class ElementButton extends AbstractElement implements Element
| Constructor and Description |
|---|
ElementButton(java.lang.String text,
UFont font,
ISkinSimple spriteContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawText(UGraphic ug,
double x,
double y) |
void |
drawU(UGraphic ug,
int zIndex,
XDimension2D dimToUse) |
protected FontConfiguration |
getConfig() |
XDimension2D |
getPreferredDimension(StringBounder stringBounder,
double x,
double y) |
protected XDimension2D |
getPureTextDimension(StringBounder stringBounder) |
protected XDimension2D |
getTextDimensionAt(StringBounder stringBounder,
double x) |
blackBlueTrue, getBlack, getColor88, getColorAA, getColorBB, getColorDD, getColorEE, getWhitepublic ElementButton(java.lang.String text,
UFont font,
ISkinSimple spriteContainer)
public XDimension2D getPreferredDimension(StringBounder stringBounder, double x, double y)
getPreferredDimension in interface Elementpublic void drawU(UGraphic ug, int zIndex, XDimension2D dimToUse)
protected void drawText(UGraphic ug, double x, double y)
protected XDimension2D getPureTextDimension(StringBounder stringBounder)
protected XDimension2D getTextDimensionAt(StringBounder stringBounder, double x)
protected final FontConfiguration getConfig()