ChartDirector 7.0 (ASP/COM/VB Edition)

AngularMeter.setCap2


Usage

setCap2([ backColor [, frontColor [, frontEdgeColor [, lightingRatio [, backRadiusRatio [, frontRadiusRatio [, frontEdgeWidthRatio ]]]]]]])

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