You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Controls/Mesnac.Controls.ChemicalWei.../HslCurve/AuxiliaryLine.cs

142 lines
5.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Drawing;
namespace Mesnac.Controls.ChemicalWeighing.HslCurve
{
/// <summary>
/// 辅助线对象
/// </summary>
// Token: 0x02000020 RID: 32
public class AuxiliaryLine : IDisposable
{
/// <summary>
/// 实际的数据值
/// </summary>
// Token: 0x170000EB RID: 235
// (get) Token: 0x060002C2 RID: 706 RVA: 0x000218C4 File Offset: 0x0001FAC4
// (set) Token: 0x060002C3 RID: 707 RVA: 0x000218CC File Offset: 0x0001FACC
public float Value { get; set; }
/// <summary>
/// 实际的数据绘制的Y轴位置
/// </summary>
// Token: 0x170000EC RID: 236
// (get) Token: 0x060002C4 RID: 708 RVA: 0x000218D5 File Offset: 0x0001FAD5
// (set) Token: 0x060002C5 RID: 709 RVA: 0x000218DD File Offset: 0x0001FADD
public float PaintValue { get; set; }
/// <summary>
/// 实际的数据绘制的Y轴位置备份使用的
/// </summary>
// Token: 0x170000ED RID: 237
// (get) Token: 0x060002C6 RID: 710 RVA: 0x000218E6 File Offset: 0x0001FAE6
// (set) Token: 0x060002C7 RID: 711 RVA: 0x000218EE File Offset: 0x0001FAEE
public float PaintValueBackUp { get; set; }
/// <summary>
/// 辅助线的颜色
/// </summary>
// Token: 0x170000EE RID: 238
// (get) Token: 0x060002C8 RID: 712 RVA: 0x000218F7 File Offset: 0x0001FAF7
// (set) Token: 0x060002C9 RID: 713 RVA: 0x000218FF File Offset: 0x0001FAFF
public Color LineColor { get; set; }
/// <summary>
/// 辅助线的虚线画笔资源
/// </summary>
// Token: 0x170000EF RID: 239
// (get) Token: 0x060002CA RID: 714 RVA: 0x00021908 File Offset: 0x0001FB08
// (set) Token: 0x060002CB RID: 715 RVA: 0x00021910 File Offset: 0x0001FB10
public Pen PenDash { get; set; }
/// <summary>
/// 辅助线的实线画笔资源
/// </summary>
// Token: 0x170000F0 RID: 240
// (get) Token: 0x060002CC RID: 716 RVA: 0x00021919 File Offset: 0x0001FB19
// (set) Token: 0x060002CD RID: 717 RVA: 0x00021921 File Offset: 0x0001FB21
public Pen PenSolid { get; set; }
/// <summary>
/// 辅助线的宽度
/// </summary>
// Token: 0x170000F1 RID: 241
// (get) Token: 0x060002CE RID: 718 RVA: 0x0002192A File Offset: 0x0001FB2A
// (set) Token: 0x060002CF RID: 719 RVA: 0x00021932 File Offset: 0x0001FB32
public float LineThickness { get; set; }
/// <summary>
/// 辅助线文本的画刷
/// </summary>
// Token: 0x170000F2 RID: 242
// (get) Token: 0x060002D0 RID: 720 RVA: 0x0002193B File Offset: 0x0001FB3B
// (set) Token: 0x060002D1 RID: 721 RVA: 0x00021943 File Offset: 0x0001FB43
public Brush LineTextBrush { get; set; }
/// <summary>
/// 是否左侧参考系True为左侧False为右侧
/// </summary>
// Token: 0x170000F3 RID: 243
// (get) Token: 0x060002D2 RID: 722 RVA: 0x0002194C File Offset: 0x0001FB4C
// (set) Token: 0x060002D3 RID: 723 RVA: 0x00021954 File Offset: 0x0001FB54
public bool IsLeftFrame { get; set; }
/// <summary>
/// 辅助线是否是虚线,默认为虚线
/// </summary>
// Token: 0x170000F4 RID: 244
// (get) Token: 0x060002D4 RID: 724 RVA: 0x0002195D File Offset: 0x0001FB5D
// (set) Token: 0x060002D5 RID: 725 RVA: 0x00021965 File Offset: 0x0001FB65
public bool IsDashStyle { get; set; } = true;
/// <summary>
/// 获取真实的画笔
/// </summary>
/// <returns></returns>
// Token: 0x060002D6 RID: 726 RVA: 0x00021970 File Offset: 0x0001FB70
public Pen GetPen()
{
return this.IsDashStyle ? this.PenDash : this.PenSolid;
}
// Token: 0x060002D7 RID: 727 RVA: 0x00021998 File Offset: 0x0001FB98
protected virtual void Dispose(bool disposing)
{
bool flag = !this.disposedValue;
if (flag)
{
if (disposing)
{
Pen penDash = this.PenDash;
if (penDash != null)
{
penDash.Dispose();
}
Pen penSolid = this.PenSolid;
if (penSolid != null)
{
penSolid.Dispose();
}
Brush lineTextBrush = this.LineTextBrush;
if (lineTextBrush != null)
{
lineTextBrush.Dispose();
}
}
this.disposedValue = true;
}
}
/// <summary>
/// 释放内存信息
/// </summary>
// Token: 0x060002D8 RID: 728 RVA: 0x000219F9 File Offset: 0x0001FBF9
public void Dispose()
{
this.Dispose(true);
}
// Token: 0x04000161 RID: 353
private bool disposedValue = false;
}
}