public override void DrawSpecialPosition(GaugeGraphics g, SpecialPosition label, float angle) { if (label.Enable) { CircularPinLabel labelStyle = ((CircularSpecialPosition)label).LabelStyle; if (labelStyle.Text != string.Empty && base.staticRendering) { this.DrawLabel(labelStyle.Placement, labelStyle.Text, base.GetValueFromPosition(angle), base.GetOffsetLabelPos(labelStyle.Placement, labelStyle.DistanceFromScale, this.GetRadius()), labelStyle.FontAngle, labelStyle.Font, labelStyle.TextColor, labelStyle.RotateLabel, labelStyle.AllowUpsideDown, labelStyle.FontUnit); } if ((!label.Visible || base.TickMarksOnTop) && base.staticRendering) { return; } float tickMarkOffset = base.GetTickMarkOffset(label); this.DrawTickMark(g, label, base.GetValueFromPosition(angle), tickMarkOffset); } }
public CircularSpecialPosition(object parent) : base(parent) { this.pinCircularLabel = new CircularPinLabel(this); }