OpenCharts.TextStyle

文本风格类

Summary
OpenCharts.TextStyle文本风格类
Properties
fSize{String} 文字大小,比如”12px”
fillStyle{String} 字体风格
fWeight{String} 填充颜色
fFamily{String} 字体
fColor{String} 字体颜色
fTextAlign{String} 对齐方式
fVisible{String} 填充颜色
bFillText{Boolean} true:填充方式绘制,false:边框方式绘制
Constructor
OpenCharts.TextStyle
Functions
setFontSize设置文字大小。
getFontSize获取文字大小。
setFontStyle设置文字风格。
getFontStyle获取文字风格。
setFontWeight设置文字加粗。
getFontWeight返回文字粗体风格。

Properties

fSize

{String} 文字大小,比如”12px”

fillStyle

{String} 字体风格

fWeight

{String} 填充颜色

fFamily

{String} 字体

fColor

{String} 字体颜色

fTextAlign

{String} 对齐方式

fVisible

{String} 填充颜色

bFillText

{Boolean} true:填充方式绘制,false:边框方式绘制

Constructor

OpenCharts.TextStyle

Functions

setFontSize

setFontSize:function(nPixel)

设置文字大小。

Parameters

nPixel{Number} 字体大小。

getFontSize

getFontSize:function()

获取文字大小。

Returns

{String} 返回字体大小

setFontStyle

setFontStyle:function(strFontStyle)

设置文字风格。

Parameters

strFontStyle{String} 字体风格。

getFontStyle

getFontStyle:function()

获取文字风格。

Returns

{String} 返回字体风格

setFontWeight

setFontWeight:function(strFontWight)

设置文字加粗。

Parameters

strFontWight{String} 粗体风格。

getFontWeight

getFontWeight:function()

返回文字粗体风格。

Returns

{String} 返回粗体风格。

setFontSize:function(nPixel)
设置文字大小。
getFontSize:function()
获取文字大小。
setFontStyle:function(strFontStyle)
设置文字风格。
getFontStyle:function()
获取文字风格。
setFontWeight:function(strFontWight)
设置文字加粗。
getFontWeight:function()
返回文字粗体风格。
Close