public class GGStatusBar
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getBackgroundColor()
Returns the background color attribute (default: Color.rgb(90, 90, 90)).
|
int |
getBorderColor()
Returns the border color attribute (default: Color.WHITE).
|
int |
getTextColor()
Returns the text color attribute (default: Color.WHITE).
|
int |
getTextHeight()
Returns the text height attribute.
|
int |
getTextWidth()
Returns the width of last text given by setText().
|
GGStatusBar |
setBackgroundColor(int color)
Sets the background color attribute.
|
GGStatusBar |
setBorderColor(int color)
Sets the border color attribute.
|
GGStatusBar |
setRefreshEnabled(boolean enable)
Enables/disables the the automatic refresh by calling
GameGrid.refresh() is called at the end of setText().
|
GGStatusBar |
setText(java.lang.String text)
Sets the given text in the status bar.
|
GGStatusBar |
setText(java.lang.String text,
int backgroundColor)
Same as setText(String text), but sets the background color
attribute to given color.
|
GGStatusBar |
setTextColor(int color)
Sets the text color attribute.
|
GGStatusBar |
setTypeface(android.graphics.Typeface typeface)
Sets the typeface attribute.
|
public int getTextWidth()
public int getTextHeight()
public int getBackgroundColor()
public GGStatusBar setBackgroundColor(int color)
color
- the new background colorpublic int getBorderColor()
public GGStatusBar setBorderColor(int color)
color
- the new border colorpublic int getTextColor()
public GGStatusBar setTextColor(int color)
color
- the new text colorpublic GGStatusBar setTypeface(android.graphics.Typeface typeface)
typeface
- the new typefacepublic GGStatusBar setRefreshEnabled(boolean enable)
enable
- if true, the automatic refresh attribute is set to true;
otherwise it is set to falsepublic GGStatusBar setText(java.lang.String text, int backgroundColor)
text
- the text to show in the status barbackgroundColor
- the new background colorpublic GGStatusBar setText(java.lang.String text)
text
- the text to show in the status bar