示例#1
0
        public NumericElement(NumericIndicator numIndicator)
        {
            _NumIndicator = numIndicator;

            _ShowDimColonPoints = true;
            _ShowDimDecimalPoint = true;
            _ShowDimSegments = true;
        }
示例#2
0
        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;
        }
示例#3
0
 public Seg7Element(NumericIndicator numIndicator)
     : base(numIndicator, 7, 6)
 {
 }
示例#4
0
 public GetDigitSegmentsEventArgs(
     NumericIndicator indicator, char digit, int segments)
 {
     _Indicator = indicator;
     _Digit = digit;
     _Segments = segments;
 }
示例#5
0
 public PostRenderIndicatorDigitEventArgs(
     Graphics graphics, NumericIndicator indicator, NumericElement digit, int index)
 {
     _Graphics = graphics;
     _Indicator = indicator;
     _Digit = digit;
     _Index = index;
 }
示例#6
0
 public PreRenderIndicatorDigitEventArgs(
     Graphics graphics, NumericIndicator indicator, NumericElement digit, int index)
     : base(graphics, indicator, digit, index)
 {
 }
示例#7
0
        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);
        }
示例#8
0
        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;
                }
            }
        }
示例#9
0
        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);
        }
示例#10
0
 public Seg16Element(NumericIndicator numIndicator)
     : base(numIndicator, 16, 6)
 {
 }
示例#11
0
 public MechanicalElement(NumericIndicator numIndicator)
     : base(numIndicator)
 {
 }