using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace PaintDotNet.Base.SettingModel { /// /// 设置 - 标注信息 /// [XmlRoot("ROOT")] public class LabelStyleModel { /// /// 文本 /// [XmlElement("Text")] public Text text { get; set; } /// /// 标记-日期 /// [XmlElement("DateMark")] public DateMark dateMark { get; set; } /// /// 标记-时间 /// [XmlElement("TimeMark")] public TimeMark timeMark { get; set; } /// /// 标记-点标记 /// [XmlElement("PointMark")] public PointMark pointMark { get; set; } /// /// 标记-数字标记 /// [XmlElement("NumberMark")] public NumberMark numberMark { get; set; } /// /// 标记-放大倍数 /// [XmlElement("GainNumber")] public GainNumber gainNumber { get; set; } /// /// 直线-直线 /// [XmlElement("LineChildLine")] public LineChildLine lineChildLine { get; set; } /// /// 直线-线段 /// [XmlElement("LineChildLineSegment")] public LineChildLineSegment lineChildLineSegment { get; set; } /// /// 曲线-铅笔 /// [XmlElement("Pencil")] public Pencil pencilModel; /// /// 曲线-折线 /// [XmlElement("Polyline")] public Polyline polylineModel; /// /// 曲线-曲线 /// [XmlElement("CurveModel")] public CurveModel curveModel; /// /// 曲线-闭合曲线 /// [XmlElement("ClosedCurve")] public ClosedCurve closedCurveModel; /// /// 箭头-单向箭头 /// [XmlElement("OneWayArrow")] public OneWayArrow oneWayArrowModel; /// /// 箭头-双向箭头 /// [XmlElement("TwoWayArrow")] public TwoWayArrow twoWayArrowModel; /// /// 圆-圆 /// [XmlElement("CircleModel")] public CircleModel circleModel { get; set; } /// /// 圆-椭圆 /// [XmlElement("Oval")] public Oval ovalModel { get; set; } /// /// 多边形-矩形 /// [XmlElement("PolygonRectangle")] public PolygonRectangle polygonRectangle { get; set; } /// /// 多边形->多边形 /// [XmlElement("PolygonPolygon")] public PolygonPolygon polygonPolygon { get; set; } /// /// 多边形->圆角矩形 /// [XmlElement("RoundedRectangle")] public RoundedRectangle roundedRectangle { get; set; } /// /// 多边形->圆角矩形 /// [XmlElement("DrawAnalysisModel")] public DrawAnalysisModel drawAnalysisModel { get; set; } #region 文本OK /// /// 文本 /// public class Text : ParentStyleModel { /// /// 文字字体 /// public string font { get; set; } /// /// 文字字号 /// public int fontSize { get; set; } /// /// 文字颜色 /// public int textColor { get; set; } /// /// 背景颜色 /// public int backgroundColor { get; set; } /// /// 背景框颜色 /// public int backgroundBoxColor { get; set; } /// /// 背景框线宽 /// public int lineWidth { get; set; } } #endregion #region 标记OK /// /// 标记-日期 /// public class DateMark : ParentStyleModel { /// /// 文字字体 /// public string font { get; set; } /// /// 文字字号 /// public int fontSize { get; set; } /// /// 文字颜色 /// public int textColor { get; set; } /// /// 背景框颜色 /// public int backgroundBoxColor { get; set; } /// /// 背景框线宽 /// public int lineWidth { get; set; } /// /// 位置 /// public string position { get; set; } /// /// 位置大小 /// public int positionSize { get; set; } /// /// 背景颜色 /// public int backgroundColor { get; set; } /// /// 背景大小 /// public int backgroundSize { get; set; } } /// /// 标记-时间 /// public class TimeMark : ParentStyleModel { /// /// 文字字体 /// public string font { get; set; } /// /// 文字字号 /// public int fontSize { get; set; } /// /// 文字颜色 /// public int textColor { get; set; } /// /// 背景框颜色 /// public int backgroundBoxColor { get; set; } /// /// 背景框线宽 /// public int lineWidth { get; set; } /// /// 位置 /// public string position { get; set; } /// /// 位置大小 /// public int positionSize { get; set; } /// /// 背景颜色 /// public int backgroundColor { get; set; } /// /// 背景大小 /// public int backgroundSize { get; set; } } /// /// 标记-数字标记 /// public class NumberMark : ParentStyleModel { /// /// 文字字体 /// public string font { get; set; } /// /// 文字字号 /// public int fontSize { get; set; } /// /// 文字颜色 /// public int textColor { get; set; } /// /// 背景框颜色 /// public int backgroundBoxColor { get; set; } /// /// 背景框线宽 /// public int lineWidth { get; set; } /// /// 背景颜色 /// public int backgroundColor { get; set; } /// /// 背景大小 /// public int backgroundSize { get; set; } } /// /// 点标记 /// public class PointMark : ParentStyleModel { /// /// 点样式 /// public string pointStyle { get; set; } /// /// 点颜色 /// public int pointColor { get; set; } } /// /// 放大倍数 /// public class GainNumber : ParentStyleModel { /// /// 文字字体 /// public string font { get; set; } /// /// 文字字号 /// public int fontSize { get; set; } /// /// 文字颜色 /// public int textColor { get; set; } /// /// 背景框颜色 /// public int backgroundBoxColor { get; set; } /// /// 背景框线宽 /// public int lineWidth { get; set; } /// /// 位置 /// public string position { get; set; } /// /// 位置大小 /// public int positionSize { get; set; } /// /// 背景颜色 /// public int backgroundColor { get; set; } /// /// 背景大小 /// public int backgroundSize { get; set; } } #endregion #region 直线OK /// /// 直线 /// public class LineChildLine : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } /// /// 线段 /// public class LineChildLineSegment : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } #endregion #region 曲线OK /// /// 铅笔 /// public class Pencil : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } /// /// 折线 /// public class Polyline : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } /// /// 曲线 /// public class CurveModel : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } /// /// 闭合曲线 /// public class ClosedCurve : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } } #endregion #region 箭头OK /// /// 单向箭头 /// public class OneWayArrow : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } /// /// 双向箭头 /// public class TwoWayArrow : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } } #endregion #region 圆OK /// /// 圆 /// public class CircleModel : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } } /// /// 椭圆 /// public class Oval : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } } #endregion #region 多边形OK /// /// 矩形 /// public class PolygonRectangle : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } } /// /// 多边形 /// public class PolygonPolygon : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } } /// /// 圆角矩形 /// public class RoundedRectangle : ParentStyleModel { /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } /// /// 圆角 /// public decimal roundAngle { get; set; } } #endregion /// /// 统计绘图 /// public class DrawAnalysisModel : ParentStyleModel { /// /// 0 圆形 1 方形 /// public int DrawType { get; set; } /// /// 线样式 /// public int lineStyle { get; set; } /// /// 线宽 /// public int lineWidth { get; set; } /// /// 线颜色 /// public int lineColor { get; set; } /// /// 填充颜色 /// public int fillColor { get; set; } /// /// 尺寸 /// public int size { get; set; } /// /// 0 不填充 1 填充 /// public int fillType { get; set; } } } }