using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Mesnac.Controls.ChemicalWeighing.HslCurve
{
///
/// 曲线数据对象
///
// Token: 0x0200001D RID: 29
public class HslCurveItem
{
///
/// 实例化一个对象
///
// Token: 0x060002A7 RID: 679 RVA: 0x00021704 File Offset: 0x0001F904
public HslCurveItem()
{
this.LineColor = Color.Red;
this.LineThickness = 1f;
this.ReferenceAxisIndex = 0;
this.Visible = true;
this.LineRenderVisiable = true;
this.TitleRegion = new RectangleF(0f, 0f, 0f, 0f);
this.Style = CurveStyle.LineSegment;
}
///
/// 线条的宽度
///
// Token: 0x170000DF RID: 223
// (get) Token: 0x060002A8 RID: 680 RVA: 0x00021791 File Offset: 0x0001F991
// (set) Token: 0x060002A9 RID: 681 RVA: 0x00021799 File Offset: 0x0001F999
public float LineThickness { get; set; }
///
/// 曲线的样式选择,可选择线段,还是平滑曲线,还是虚线
///
// Token: 0x170000E0 RID: 224
// (get) Token: 0x060002AA RID: 682 RVA: 0x000217A2 File Offset: 0x0001F9A2
// (set) Token: 0x060002AB RID: 683 RVA: 0x000217AA File Offset: 0x0001F9AA
public CurveStyle Style { get; set; }
///
/// 曲线颜色
///
// Token: 0x170000E1 RID: 225
// (get) Token: 0x060002AC RID: 684 RVA: 0x000217B3 File Offset: 0x0001F9B3
// (set) Token: 0x060002AD RID: 685 RVA: 0x000217BB File Offset: 0x0001F9BB
public Color LineColor { get; set; }
///
/// 是否左侧参考系,0为左侧,1为右侧,其他是辅助坐标轴
///
// Token: 0x170000E2 RID: 226
// (get) Token: 0x060002AE RID: 686 RVA: 0x000217C4 File Offset: 0x0001F9C4
// (set) Token: 0x060002AF RID: 687 RVA: 0x000217CC File Offset: 0x0001F9CC
public int ReferenceAxisIndex { get; set; }
///
/// 本曲线是否显示出来,默认为显示
///
// Token: 0x170000E3 RID: 227
// (get) Token: 0x060002B0 RID: 688 RVA: 0x000217D5 File Offset: 0x0001F9D5
// (set) Token: 0x060002B1 RID: 689 RVA: 0x000217DD File Offset: 0x0001F9DD
public bool Visible { get; set; }
///
/// 用于曲线自身选择是否显示的情况的判断
///
// Token: 0x170000E4 RID: 228
// (get) Token: 0x060002B2 RID: 690 RVA: 0x000217E6 File Offset: 0x0001F9E6
// (set) Token: 0x060002B3 RID: 691 RVA: 0x000217EE File Offset: 0x0001F9EE
public bool LineRenderVisiable { get; set; }
///
/// 标题实现的基本区域
///
// Token: 0x170000E5 RID: 229
// (get) Token: 0x060002B4 RID: 692 RVA: 0x000217F7 File Offset: 0x0001F9F7
// (set) Token: 0x060002B5 RID: 693 RVA: 0x000217FF File Offset: 0x0001F9FF
public RectangleF TitleRegion { get; set; }
///
/// 本曲线在图形上显示的格式化信息,对历史数据有效
///
// Token: 0x170000E6 RID: 230
// (get) Token: 0x060002B6 RID: 694 RVA: 0x00021808 File Offset: 0x0001FA08
// (set) Token: 0x060002B7 RID: 695 RVA: 0x00021810 File Offset: 0x0001FA10
public string RenderFormat { get; set; } = "{0}";
// Token: 0x060002B8 RID: 696 RVA: 0x0002181C File Offset: 0x0001FA1C
public Brush GetLineBrush()
{
bool flag = this.lineBrush == null;
if (flag)
{
this.lineBrush = new SolidBrush(this.LineColor);
}
return this.lineBrush;
}
///
/// 数据
///
// Token: 0x0400013C RID: 316
public float[] Data = null;
///
/// 标记文本
///
// Token: 0x0400013D RID: 317
public string[] MarkText = null;
// Token: 0x04000146 RID: 326
private Brush lineBrush = null;
}
}