Class DiagramDataBase
public abstract class DiagramDataBase : DisplayBindableBase, INotifyPropertyChanged, IDisplayBindable, IIconable, IOrderable, IDescriptionable, IDiagramData, ICloneable, IDable, INameable, IGroupable
- Inheritance
-
DiagramDataBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
DiagramDataBase()
public DiagramDataBase()
Properties
AlignmentCommand
[Icon("")]
[JsonIgnore]
[Display(Name = "对齐节点", GroupName = "操作", Order = 5)]
public virtual DisplayCommand AlignmentCommand { get; }
Property Value
ClearCommand
[Icon("")]
[Display(Name = "清空节点", GroupName = "操作", Order = 5, Description = "点击此功能,删除所有节点、连线和端口")]
public virtual DisplayCommand ClearCommand { get; }
Property Value
DataSource
[JsonIgnore]
public IDiagramDataSource DataSource { get; set; }
Property Value
Datas
public Datas Datas { get; }
Property Value
DeleteCheckedCommand
[Icon("")]
[Display(Name = "删除选中节点", GroupName = "操作", Order = 4, Description = "点击此功能,删除选中的所有节点")]
public virtual DisplayCommand DeleteCheckedCommand { get; }
Property Value
EditCommand
[Icon("")]
[Display(Name = "编辑面板", GroupName = "操作", Order = 0, Description = "点击此功能,编辑面板信息")]
public virtual DisplayCommand EditCommand { get; }
Property Value
Height
[Display(Name = "面板高度", GroupName = "基础信息", Order = 0)]
public double Height { get; set; }
Property Value
ItemsChangedCommand
public RelayCommand ItemsChangedCommand { get; }
Property Value
Layout
[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "Layouts")]
[Display(Name = "布局方式", GroupName = "基础信息")]
public ILayout Layout { get; set; }
Property Value
Layouts
[JsonIgnore]
[Browsable(false)]
public ObservableCollection<ILayout> Layouts { get; set; }
Property Value
LinkDrawer
[JsonIgnore]
[Display(Name = "连线样式", GroupName = "基础信息")]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "LinkDrawers")]
public ILinkDrawer LinkDrawer { get; set; }
Property Value
LinkDrawers
[JsonIgnore]
[Browsable(false)]
public ObservableCollection<ILinkDrawer> LinkDrawers { get; set; }
Property Value
Location
public Point Location { get; set; }
Property Value
Message
public string Message { get; set; }
Property Value
MouseDoubleClickCommand
public RelayCommand MouseDoubleClickCommand { get; }
Property Value
Name
获取或设置对象的名称。
[Browsable(true)]
[Display(Name = "名称", Order = 0, GroupName = "基础信息")]
public override string Name { get; set; }
Property Value
NodeType
[JsonIgnore]
public Type NodeType { get; set; }
Property Value
SelectedPartChangedCommand
public RelayCommand SelectedPartChangedCommand { get; }
Property Value
SelectedPartData
[JsonIgnore]
public IPartData SelectedPartData { get; set; }
Property Value
ShowCommand
[Icon("")]
[Display(Name = "查看面板", GroupName = "操作", Order = 0, Description = "点击此功能,编辑查看面板信息")]
public virtual DisplayCommand ShowCommand { get; }
Property Value
Width
[Display(Name = "面板宽度", GroupName = "基础信息", Order = 0)]
public double Width { get; set; }
Property Value
Methods
Clear()
public void Clear()
Clone()
public object Clone()
Returns
CreateDataSource()
protected virtual IDiagramDataSource CreateDataSource()
Returns
CreateLayousSource()
protected virtual IEnumerable<ILayout> CreateLayousSource()
Returns
CreateLinkDrawerSource()
protected virtual IEnumerable<ILinkDrawer> CreateLinkDrawerSource()
Returns
InvalidateDatas()
protected void InvalidateDatas()
OnDeserialized()
protected virtual void OnDeserialized()
OnDeserializedMethod(StreamingContext)
[OnDeserialized]
protected void OnDeserializedMethod(StreamingContext context)
Parameters
context
StreamingContext
OnItemsChanged()
protected virtual void OnItemsChanged()
OnMouseDoubleClick(object)
protected virtual void OnMouseDoubleClick(object e)
Parameters
e
object
OnSelectedPartChanged()
protected virtual void OnSelectedPartChanged()
OnSerializing()
protected virtual void OnSerializing()
OnSerializingMethod(StreamingContext)
[OnSerializing]
protected void OnSerializingMethod(StreamingContext context)
Parameters
context
StreamingContext