예제 #1
0
        internal ChannelCurveStyle()
        {
            lineWidth = 1;
            lineColor = Color.Yellow;

            showIcon = false;
            iconLineWidth = 1;
            iconSize = new Size(5, 5);

            iconStyle = CurveIconStyle.cisSolidSquare;
        }
예제 #2
0
 /// <summary>
 /// 设置通道线形态及其可见性,通道以index为通道号
 /// </summary>
 /// <param name="index"></param>
 /// <param name="cis"></param>
 /// <param name="value"></param>
 public void SetChannelIcon(int index, CurveIconStyle cis, bool value)
 {
     plot.SetCurveIcon(index, cis, value);
 }
예제 #3
0
        //设置曲线图标形状类型,及其可见性
        public void SetCurveIcon(int index, CurveIconStyle cis, bool value)
        {
            Channel chnl = chnls.ChannelOf(index);

            if (chnl != null) {               
                chnl.ccStyle.iconStyle = cis;
                chnl.ccStyle.showIcon  = value;
            }
        }