ChartDirector 7.1 (C++ Edition)

AngularMeter.setCap2


Usage

void setCap2(int backColor = 0x888888, int frontColor = 0x000000, int frontEdgeColor = 0x888888, double lightingRatio = NoValue, double backRadiusRatio = NoValue, double frontRadiusRatio = NoValue, double frontEdgeWidthRatio = NoValue);

Description

Configures the meter to use new style pointer cap.

The new style pointer cap is a circular object covering the the center of the meter. If is designed to be used with new style pointers (added with AngularMeter.addPointer2). The cap consists of two circles, one at the background below the pointer, and one covering the pointer. The pointer will appear to be sandwiched between these two circles.

Arguments

ArgumentDefaultDescription
backColor0x888888The fill color of the back circle.
frontColor0x000000The fill color of the front circle.
frontEdgeColor0x888888The edge color of the front circle.
lightingRatioNoValueBy default, lighting effect is applied to the back circle and the edge of the front circle, such that the bottom-right side will appear to be darkened. This argument configures how bright the bottom-right side is. The default value is 0.2, which means the bottom-right side is 20% as bright as the top-left side. Setting this argument to 1 disables the lighting effect.
backRadiusRatioNoValueThe radius of the back circle, expressed as a ratio to the meter scale radius (set with AngularMeter.setMeter). The default is 0.15.
frontRadiusRatioNoValueThe radius of the front circle, expressed as a ratio to the meter scale radius (set with AngularMeter.setMeter). The default is 0.11.
frontEdgeWidthRatioNoValueThe edge width of the front circle, expressed as a ratio to the meter scale radius (set with AngularMeter.setMeter). The default is 0.01.

Return Value

None