Class UMLClassifier
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class UMLClassifier : Node
Constructors
UMLClassifier()
Initializes a new instance of the Syncfusion.JavaScript.DataVisualization.Models.Diagram.UMLNode class.
Declaration
public UMLClassifier()
UMLClassifier(UMLClassifier)
Initializes a new instance of the Syncfusion.JavaScript.DataVisualization.Models.Diagram.UMLNode class.
Declaration
public UMLClassifier(UMLClassifier src)
Parameters
Type | Name | Description |
---|---|---|
UMLClassifier | src |
Properties
Class
Gets or sets the definition of objects that share given structural or behavioral characteristics of UML Classfier.
Declaration
[JsonProperty("class")]
public UMLClass Class { get; set; }
Property Value
Type | Description |
---|---|
UMLClass | Diagram.UMLClass |
Examples
UMLClassifier Node = new UMLClassifier();
Node.Name = "node";
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.BorderColor = "white";
Node.BorderWidth = 2;
Node.Classifier = ClassifierShapes.Class;
Node.Class = new UMLClass()
{
Name = "Bank Account",
Methods = new Collection() {
new UMLMethod() {
Name= "deposit", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
new UMLMethod(){
Name= "withdrawal", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
}
};
Classifier
Gets or sets the type of UML Classfier Object.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("classifier")]
public ClassifierShapes Classifier { get; set; }
Property Value
Type | Description |
---|---|
ClassifierShapes | ClassifierShapes.Class |
Examples
UMLClassifier Node = new UMLClassifier();
Node.Name = "node";
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.BorderColor = "white";
Node.BorderWidth = 2;
Node.Classifier = ClassifierShapes.Class;
Enumeration
Gets or sets the classifier that consists of a set of literal values.
Declaration
[JsonProperty("enumeration")]
public UMLEnumeration Enumeration { get; set; }
Property Value
Type | Description |
---|---|
UMLEnumeration | ClassifierShapes.Class |
Examples
UMLClassifier Node = new UMLClassifier();
Node.Name = "node";
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.BorderColor = "white";
Node.BorderWidth = 2;
Node.Classifier = ClassifierShapes.Interface;
Node.Enumeration = new UMLEnumeration()
{
Name = "Mail Status",
Members = new Collection() {
new EnumMember() {Name="Sent"},
new EnumMember() {Name="Delivered"},
}
};
Interface
Gets or sets the definition of part of the externally visible behavior of an object.
Declaration
[JsonProperty("interface")]
public UMLInterface Interface { get; set; }
Property Value
Type | Description |
---|---|
UMLInterface | ClassifierShapes.Class |
Examples
UMLClassifier Node = new UMLClassifier();
Node.Name = "node";
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.BorderColor = "white";
Node.BorderWidth = 2;
Node.Classifier = ClassifierShapes.Interface;
Node.Interface = new UMLInterface()
{
Name = "Bank Account",
Methods = new Collection() {
new UMLMethod() {
Name= "deposit", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
new UMLMethod(){
Name= "withdrawal", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
}
};
Methods
Clone()
Performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | object |