public class ElementDroplist extends AbstractElement implements Element
Constructor and Description |
---|
ElementDroplist(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,
Dimension2D dimToUse) |
protected FontConfiguration |
getConfig() |
Dimension2D |
getPreferredDimension(StringBounder stringBounder,
double x,
double y) |
protected Dimension2D |
getPureTextDimension(StringBounder stringBounder) |
protected Dimension2D |
getTextDimensionAt(StringBounder stringBounder,
double x) |
public ElementDroplist(String text, UFont font, ISkinSimple spriteContainer)
public Dimension2D getPreferredDimension(StringBounder stringBounder, double x, double y)
getPreferredDimension
in interface Element
public void drawU(UGraphic ug, int zIndex, Dimension2D dimToUse)
protected void drawText(UGraphic ug, double x, double y)
protected Dimension2D getPureTextDimension(StringBounder stringBounder)
protected Dimension2D getTextDimensionAt(StringBounder stringBounder, double x)
protected final FontConfiguration getConfig()
Copyright © 2015. All Rights Reserved.