com.nchart3d.NChart.NChartFont Class Reference

NChartFont is an immutable container for three font characteristics: name, style and size. More...

Public Member Functions

String getName ()
 May return font name passed to constructor NChartFont(String, int, float) or FONT_DEFAULT if NChartFont(float) was used. More...
 
float getSize ()
 Font size used in constructor
Read-only field. More...
 
int getStyle ()
 May return style passed to constructor NChartFont(String, int, float) or STYLE_NORMAL if NChartFont(float) was used. More...
 
 NChartFont (String name, int style, float size)
 Creates a font with the specified characteristics. More...
 
 NChartFont (float size)
 Creates system default font with normal style. More...
 

Static Public Attributes

static final String FONT_DEFAULT
 System default font. More...
 
static final String FONT_DEFAULT_BOLD
 System default bold font. More...
 
static final String FONT_MONOSPACE
 System monospace font. More...
 
static final String FONT_SANS_SERIF
 System sans serif font. More...
 
static final String FONT_SERIF
 System serif font. More...
 
static final int STYLE_NORMAL
 Default style. More...
 
static final int STYLE_BOLD
 Style bold. More...
 
static final int STYLE_ITALIC
 Style italic. More...
 
static final int STYLE_BOLD_ITALIC
 Style bold italic. More...
 

Detailed Description

NChartFont is an immutable container for three font characteristics: name, style and size.

Except size it acts like Android Typeface class.

See also
http://developer.android.com/reference/android/graphics/Typeface.html

Constructor & Destructor Documentation

com.nchart3d.NChart.NChartFont.NChartFont ( String  name,
int  style,
float  size 
)
inline

Creates a font with the specified characteristics.

Parameters
nameone of the constants predefined above or any other existing font name
styleone of the style constants predefined above
sizefont size in density independent points
com.nchart3d.NChart.NChartFont.NChartFont ( float  size)
inline

Creates system default font with normal style.

Parameters
sizefont size in density independent points

Member Function Documentation

String com.nchart3d.NChart.NChartFont.getName ( )
inline

May return font name passed to constructor NChartFont(String, int, float) or FONT_DEFAULT if NChartFont(float) was used.


Read-only field.

Returns
font name
float com.nchart3d.NChart.NChartFont.getSize ( )
inline

Font size used in constructor
Read-only field.

Returns
font size in density independent points
int com.nchart3d.NChart.NChartFont.getStyle ( )
inline

May return style passed to constructor NChartFont(String, int, float) or STYLE_NORMAL if NChartFont(float) was used.


Read-only field.

Returns
font style

Member Data Documentation

final String com.nchart3d.NChart.NChartFont.FONT_DEFAULT
static
final String com.nchart3d.NChart.NChartFont.FONT_DEFAULT_BOLD
static
final String com.nchart3d.NChart.NChartFont.FONT_MONOSPACE
static
final String com.nchart3d.NChart.NChartFont.FONT_SANS_SERIF
static
final String com.nchart3d.NChart.NChartFont.FONT_SERIF
static
final int com.nchart3d.NChart.NChartFont.STYLE_BOLD
static
final int com.nchart3d.NChart.NChartFont.STYLE_BOLD_ITALIC
static
final int com.nchart3d.NChart.NChartFont.STYLE_ITALIC
static
final int com.nchart3d.NChart.NChartFont.STYLE_NORMAL
static