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,
java.awt.geom.Dimension2D dimToUse) |
protected FontConfiguration |
getConfig() |
java.awt.geom.Dimension2D |
getPreferredDimension(StringBounder stringBounder,
double x,
double y) |
protected java.awt.geom.Dimension2D |
getPureTextDimension(StringBounder stringBounder) |
protected java.awt.geom.Dimension2D |
getTextDimensionAt(StringBounder stringBounder,
double x) |
public ElementButton(java.lang.String text, UFont font, ISkinSimple spriteContainer)
public java.awt.geom.Dimension2D getPreferredDimension(StringBounder stringBounder, double x, double y)
getPreferredDimension
in interface Element
public void drawU(UGraphic ug, int zIndex, java.awt.geom.Dimension2D dimToUse)
protected void drawText(UGraphic ug, double x, double y)
protected java.awt.geom.Dimension2D getPureTextDimension(StringBounder stringBounder)
protected java.awt.geom.Dimension2D getTextDimensionAt(StringBounder stringBounder, double x)
protected final FontConfiguration getConfig()
Copyright © 2020. All Rights Reserved.