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