public interface Button
extends de.lessvoid.nifty.controls.NiftyControl
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate/Click this button.
|
de.lessvoid.nifty.spi.render.RenderFont |
getFont()
Get the current Font of the button text.
|
String |
getText()
Get the current text the button shows.
|
de.lessvoid.nifty.tools.Color |
getTextColor()
Get the text color of the Button Text.
|
de.lessvoid.nifty.layout.align.HorizontalAlign |
getTextHAlign()
Get the Horizontal Align of the Button text.
|
int |
getTextHeight()
Get the height of the text.
|
de.lessvoid.nifty.layout.align.VerticalAlign |
getTextVAlign()
Get the Vertical Align of the Button text.
|
int |
getTextWidth()
Get the width of the text.
|
void |
setFont(de.lessvoid.nifty.spi.render.RenderFont fontParam)
Set the Font of the button text.
|
void |
setText(String text)
Set the current text the button shows.
|
void |
setTextColor(de.lessvoid.nifty.tools.Color newColor)
Set the text color of the Button Text.
|
void |
setTextHAlign(de.lessvoid.nifty.layout.align.HorizontalAlign newTextHAlign)
Set the Horizontal Align of the Button text.
|
void |
setTextVAlign(de.lessvoid.nifty.layout.align.VerticalAlign newTextVAlign)
Set the Vertical Align of the Button text.
|
void activate()
String getText()
void setText(String text)
text
- new text to showint getTextWidth()
int getTextHeight()
de.lessvoid.nifty.spi.render.RenderFont getFont()
void setFont(de.lessvoid.nifty.spi.render.RenderFont fontParam)
fontParam
- new fontde.lessvoid.nifty.layout.align.VerticalAlign getTextVAlign()
void setTextVAlign(de.lessvoid.nifty.layout.align.VerticalAlign newTextVAlign)
newTextVAlign
- VerticalAlignde.lessvoid.nifty.layout.align.HorizontalAlign getTextHAlign()
void setTextHAlign(de.lessvoid.nifty.layout.align.HorizontalAlign newTextHAlign)
newTextHAlign
- HorizontalAlignde.lessvoid.nifty.tools.Color getTextColor()
void setTextColor(de.lessvoid.nifty.tools.Color newColor)
newColor
- new Color for the button textCopyright © 2013. All Rights Reserved.