ScanGraphItemParam.cs 1.27 KB
Newer Older
1 2 3 4 5 6 7
using MultiLayout.UiModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

8
namespace FLY.Thick.Blowing.UI.UiModule
9 10 11 12 13 14 15 16 17 18
{
    /// <summary>
    /// 扫描图的参数
    /// </summary>
    public class ScanGraphItemParam : UIModuleParam
    {
        public string UiModule { get; set; } = "scangraph";
        /// <summary>
        /// Y轴比例
        /// </summary>
19
        public double YRangePercent { get; set; } = 3;
20

21
        private int mix = 2;
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
        /// <summary>
        /// 混合数
        /// </summary>
        public int Mix
        {
            get { return mix; }
            set
            {
                if (value < 1)
                    value = 1;
                if (mix != value)
                {
                    mix = value;
                }
            }
        }

        /// <summary>
        /// 当小于等于0,为相对值,大于0为绝对值
        /// </summary>
42
        public long Number { get; set; } = 0;
43 44 45 46 47 48 49 50 51 52 53 54

        /// <summary>
        /// Y轴%显示
        /// </summary>
        public bool IsPercent { get; set; } = true;

        /// <summary>
        /// Y轴自动目标值
        /// </summary>
        public bool IsAutoTarget { get; set; } = true;
    }
}