ChartDirector 6.0 (Ruby Edition)

BaseMeter.setLabelStyle


Usage

setLabelStyle([ font [, fontSize [, fontColor [, fontAngle ]]]])

Description

Sets the font style used to for the meter labels.

See Font Specification for details on various font attributes.

Arguments

ArgumentDefaultDescription
font"bold"The font used to draw the labels.
fontSize-1The font size used to draw the labels in points. A value of -1 means the font size is not changed. The default font size is 10 points for angular meters, and 8 points for linear meters.
fontColorTextColorThe color used to draw the labels.
fontAngle0The rotation angle of the labels.

Return Value

A TextBox object representing the prototype of the meter labels. This may be used to fine-tune the appearance of the meter labels.