public class FontStyle extends Style
IRenderSurface
Modifier and Type | Field and Description |
---|---|
static FontStyle |
DEFAULT_FONT_STYLE |
int |
textColor |
float |
textSize |
android.graphics.Typeface |
typeface |
Constructor and Description |
---|
FontStyle(float textSize,
int textColor)
Creates an instance of
FontStyle with specified arguments. |
FontStyle(android.graphics.Typeface typeface,
float textSize,
int textColor)
Creates an instance of
FontStyle with specified arguments. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
initPaint(android.graphics.Paint paint)
Initialises a Paint with this FontStyle values
|
void |
initTextView(android.widget.TextView textView)
Initialises a TextView with this FontStyle values
|
boolean |
isVisible()
Gets whether this style is visible
|
public static final FontStyle DEFAULT_FONT_STYLE
public final android.graphics.Typeface typeface
public final float textSize
public final int textColor
public FontStyle(android.graphics.Typeface typeface, float textSize, int textColor)
FontStyle
with specified arguments.typeface
- The Typeface
value.textSize
- The value which determines the font size.textColor
- The text color.public FontStyle(float textSize, int textColor)
FontStyle
with specified arguments.textSize
- The value which determines the font size.textColor
- The text color.public boolean isVisible()
public void initPaint(android.graphics.Paint paint)
paint
- The Paint to initpublic void initTextView(android.widget.TextView textView)
textView
- The TextView to initpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object