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.
kev/Drawer/UCDraw/SigmaDrawerStyle/DrawerPointStyleSymbol.cs

130 lines
3.6 KiB
C#

using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
#if WEB_SERVICE
#else
using System.Drawing.Design;
#endif
using System.Xml.Serialization;
using SigmaDrawerStyle;
namespace GeoSigma.SigmaDrawerStyle
{
[XmlRoot("HowToViewPoint")]
[TypeConverter(typeof(PropertySorter))]
public class DrawerPointStyleSymbol
{
[Browsable(false)]
public DrawerPointStyle PointStyle { get; private set; }
/// <summary>
/// 属性类别排序
/// </summary>
private List<string> categorys = new List<string>() { "文本", "符号", "Z值", "杂项" };
/// <summary>
/// Initializes a new instance of the <see cref="DrawerPointStyle"/> class.
/// </summary>
public DrawerPointStyleSymbol(DrawerPointStyle pointStyle)
{
this.PointStyle = pointStyle;
}
[XmlIgnore]
[Category("符号"), DisplayName("名称"), PropertyOrder(1)]
//[Editor("UCDraw.Editor.MarkEditor, UCDraw", typeof(UITypeEditor))]
#if WEB_SERVICE
#else
[Editor("GeoSigma.SigmaDrawerStyle.PropertyEditorSymbol, GeoSigma.SigmaDrawerStyle", typeof(UITypeEditor))]
#endif
public SymbolNameWrapper SymbolEditor
{
get
{
return PointStyle.SymbolEditor;
}
set
{
PointStyle.SymbolEditor = value;
}
}
[XmlIgnore]
[Category("符号"), DisplayName("尺寸"), PropertyOrder(2)]
[TypeConverter(typeof(PropertySizeConvert))]
public SizeF SymbolSize
{
get
{
return PointStyle.SymbolSize;
}
set
{
PointStyle.SymbolSize = value;
}
}
[XmlIgnore]
[Category("符号"), DisplayName("角度"), PropertyOrder(3)]
public double SymbolAngle
{
get
{
return PointStyle.SymbolAngle;
}
set
{
PointStyle.SymbolAngle = value;
}
}
[XmlIgnore]
[Browsable(true)]
[Category("符号"), DisplayName("符号背景"), Description("统一显示符号背景色"), ReadOnly(false), PropertyOrder(4)]
//[TypeConverter(typeof(ExpandableObjectConverter))]
[TypeConverter(typeof(PropertyColorNullable.PropertyColorNullableConvert))]
public PropertyColorNullable SymbolBackColor
{
get
{
return PointStyle.SymbolBackColor;
}
set
{
PointStyle.SymbolBackColor = value;
}
}
[XmlIgnore]
[Browsable(true)]
[Category("符号"), DisplayName("符号前景"), Description("统一显示符号前景色"), ReadOnly(false), PropertyOrder(5)]
//[TypeConverter(typeof(ExpandableObjectConverter))]
[TypeConverter(typeof(PropertyColorNullable.PropertyColorNullableConvert))]
public PropertyColorNullable SymbolForeColor
{
get
{
return PointStyle.SymbolForeColor;
}
set
{
PointStyle.SymbolForeColor = value;
}
}
[XmlIgnore]
[DisplayName("坐标可移动")]
[TypeConverter(typeof(Converter.YesNoConverter))]
public bool CanMoveCoordinate
{
get
{
return PointStyle.CanMoveCoordinate;
}
set
{
PointStyle.CanMoveCoordinate = value;
}
}
}
}