Exemplo n.º 1
0
 public void AppendObject(IDrawableObject drawableObject)
 {
     if (!DrawableObjects.Contains(drawableObject))
     {
         DrawableObjects.Add(drawableObject);
     }
 }
Exemplo n.º 2
0
        private void CreateNode()
        {
            NodeObject newNode = new NodeObject();

            ActivateNode(newNode);
            nodes.Add(newNode);
            DrawableObjects.Add(newNode);
        }
Exemplo n.º 3
0
        public FreeHandRegion(Image backgroundImage = null)
            : base(backgroundImage)
        {
            points         = new List <Point>(128);
            regionFillPath = new GraphicsPath();

            lastNode = new NodeObject();
            DrawableObjects.Add(lastNode);
        }
Exemplo n.º 4
0
        private NodeObject CreateNode()
        {
            NodeObject newNode = new NodeObject(borderPen, nodeBackgroundBrush);

            ActivateNode(newNode);
            nodes.Add(newNode);
            DrawableObjects.Add(newNode);
            return(newNode);
        }
Exemplo n.º 5
0
 public FreeHandRegion()
 {
     points         = new List <Point>(128);
     regionFillPath = new GraphicsPath();
     lastNode       = new NodeObject()
     {
         Shape = NodeShape.Circle
     };
     DrawableObjects.Add(lastNode);
 }
Exemplo n.º 6
0
        private void CreateNode()
        {
            NodeObject newNode = new NodeObject()
            {
                Shape = NodeShape.Diamond
            };

            ActivateNode(newNode);
            nodes.Add(newNode);
            DrawableObjects.Add(newNode);
        }