Node.cs

28 lines | 745 B Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using yEd.XGML.DocumentEntities.Base;

namespace yEd.XGML.DocumentEntities.NodeEntitie
{
    public class Node : IElement
    {
        public int id { set; get; }
        public string label { set; get; }

        public NodeGraphics graphics { set; get; } = new NodeGraphics();
        public NodeLabelGraphics LabelGraphics { set; get; } = new NodeLabelGraphics();


        /// <summary>
        /// ID GroupNode, к которому принадлежит элемент. Null - в корне графа
        /// </summary>
        public int? gid { set; get; } = null;

        public bool isGroup => false;
    }
}