IGraphBase.cs 3.27 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace FLY.ControlLibrary
{

    public interface IGraphBase
    {
        #region 附加属性

        /// <summary>
        /// 标题1  :“扫描图”自己写的
        /// </summary>
        string Title { get; set; }

        /// <summary>
        /// 标题2 :{100} 10:20 系统写的
        /// </summary>
        string Title2 { get; set; }

        /// <summary>
        /// 是否有效, 标题背景显示的颜色
        /// </summary>
        bool IsValid { get; set; }

        /// <summary>
        /// 计算结果
        /// </summary>
        string CalState { get; set; }

        /// <summary>
        /// 空的数据,定义某个值为空,默认为 99999998
        /// </summary>
        int EmptyValue { get; set; }

        /// <summary>
        /// 放大倍数, 目标值= Target/放大倍数
        /// </summary>
        int Multi { get; set; }

        /// <summary>
        /// 图类型 
        /// </summary>
        System.Windows.Forms.DataVisualization.Charting.SeriesChartType ChartType { get; set; }

        /// <summary>
        /// 目标值
        /// </summary>
        int Target { get; set; }

        /// <summary>
        /// 自动目标值时的,目标值
        /// </summary>
        int AutoTarget { get; set; }

        /// <summary>
        /// 自动目标值
        /// </summary>
        bool IsAutoTarget { get; set; }

        /// <summary>
        /// 获取或设置指示是否将轴反转的标志
        /// </summary>
        bool IsReversed { get; set; }

        /// <summary>
        /// %显示
        /// </summary>
        bool IsPercent { get; set; }

        /// <summary>
        /// 规格线
        /// </summary>
        int Alarm { get; set; }

        /// <summary>
        /// 百分比缩放Y轴, 默认是 300%, 3倍Alarm
        /// </summary>
        double YRangePercent { get; set; }

        /// <summary>
        /// 是否有控制线
        /// </summary>
        bool HasCtrlLine { get; set; }

        /// <summary>
        /// 控制线
        /// </summary>
        int CtrlLine { get; set; }

        //ObservableCollection<int> DataSource { get; set; }

        /// <summary>
        /// 设置事件
        /// </summary>
        event EventHandler ShowSettingDialogEvent;
        #endregion
    }

    public interface IGraphBase2
    {
        /// <summary>
        /// 第一个分区号
        /// </summary>
        int FirstBoltNo { get; set; }


        /// <summary>
        /// 显示范围开始
        /// </summary>
        int FirstIndex { get; set; }


        /// <summary>
        /// 显示范围结束
        /// </summary>
        int LastIndex { get; set; }
        /// <summary>
        /// 数据统计的开始
        /// </summary>
        int DataFirst { get; set; }

        /// <summary>
        /// 数据统计的结束
        /// </summary>
        int DataLast { get; set; }
    }

    public interface IGraphBase3
    {
        /// <summary>
        /// mm/分区
        /// </summary>
        double MmOfBolt { get; set; }

        /// <summary>
        /// X轴间隔 单位分区
        /// </summary>
        int XInterval { get; set; }
    }
}