public NumericElement(NumericIndicator numIndicator) { _NumIndicator = numIndicator; _ShowDimColonPoints = true; _ShowDimDecimalPoint = true; _ShowDimSegments = true; }
public DigitalElement(NumericIndicator numIndicator, int segments, int points) : base(numIndicator) { _SegPoints = new Point[segments][]; for (int i = 0; i < segments; i++) _SegPoints[i] = new Point[points]; _NeedRecalcSegments = true; _NeedSegments = true; }
public Seg7Element(NumericIndicator numIndicator) : base(numIndicator, 7, 6) { }
public GetDigitSegmentsEventArgs( NumericIndicator indicator, char digit, int segments) { _Indicator = indicator; _Digit = digit; _Segments = segments; }
public PostRenderIndicatorDigitEventArgs( Graphics graphics, NumericIndicator indicator, NumericElement digit, int index) { _Graphics = graphics; _Indicator = indicator; _Digit = digit; _Index = index; }
public PreRenderIndicatorDigitEventArgs( Graphics graphics, NumericIndicator indicator, NumericElement digit, int index) : base(graphics, indicator, digit, index) { }
internal int OnGetDigitSegments(NumericIndicator indicator, char digit, int segments) { if (GetDigitSegments != null) { GetDigitSegmentsEventArgs e = new GetDigitSegmentsEventArgs(indicator, digit, segments); GetDigitSegments(this, e); return (e.Segments); } return (segments); }
internal void OnPostRenderIndicatorDigit( PaintEventArgs e, NumericIndicator indicator, NumericElement digit, int index) { if (PostRenderIndicatorDigit != null) { PostRenderIndicatorDigitEventArgs args = new PostRenderIndicatorDigitEventArgs(e.Graphics, indicator, digit, index); try { digit.InRenderCallout = true; PostRenderIndicatorDigit(this, args); } finally { digit.InRenderCallout = false; } } }
internal bool OnPreRenderIndicatorDigit( PaintEventArgs e, NumericIndicator indicator, NumericElement digit, int index) { if (PreRenderIndicatorDigit != null) { PreRenderIndicatorDigitEventArgs args = new PreRenderIndicatorDigitEventArgs(e.Graphics, indicator, digit, index); try { digit.InRenderCallout = true; PreRenderIndicatorDigit(this, args); } finally { digit.InRenderCallout = false; } if (args.Cancel == true) return (true); } return (false); }
public Seg16Element(NumericIndicator numIndicator) : base(numIndicator, 16, 6) { }
public MechanicalElement(NumericIndicator numIndicator) : base(numIndicator) { }