NodeGraphics.cs

46 lines | 1.171 kB Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Drawing;

using yEd.XGML.Enums;

namespace yEd.XGML.DocumentEntities.NodeEntitie
{
    public class NodeGraphics
    {
        /// <summary>
        /// X coordinate
        /// </summary>
        public double x { set; get; } = 0;
        /// <summary>
        /// Y coordinate
        /// </summary>
        public double y { set; get; } = 0;
        /// <summary>
        /// Widht
        /// </summary>
        public double w { set; get; } = 30;
        /// <summary>
        /// Height
        /// </summary>
        public double h { set; get; } = 30;
        /// <summary>
        /// Geometri type
        /// </summary>
        public EnumNodeType type { set; get; } = EnumNodeType.ellipse;
        public bool raisedBorder { set; get; } = false;
        /// <summary>
        /// Fill color
        /// </summary>
        public Color fill { set; get; } = ColorTranslator.FromHtml("#FFCC00");
        /// <summary>
        /// Outline Color
        /// </summary>
        public Color outline { set; get; } = ColorTranslator.FromHtml("#000000");
    }
}