Esempio n. 1
0
        protected override void makeConnections()
        {
            this.startNode     = new HolderNode(this);
            base.TrueConnector = new ConnectorNode(this);
            base.TrueConnector.Connector.Opacity = 50;
            base.TrueNode = new HolderNode(this);
            base.TrueConnector.EndNode = this.startNode;

            this.startNode.OutConnector.EndNode = base.TrueNode;
            base.TrueConnector.Connector.Label  = new Crainiate.Diagramming.Label("True");
            base.OutConnector.Connector.Label   = new Crainiate.Diagramming.Label("False");

            base.BackNode = new HolderNode(this);
            base.BackNode.OutConnector.Connector.End.Shape = base.Shape;
            base.BackNode.Shape.Label = new Crainiate.Diagramming.Label("B");

            base.TrueNode.OutConnector.EndNode = base.BackNode;

            base.BackNode.OutConnector.setEndNode(this);
            base.BackNode.OutConnector.Selectable  = false;
            base.TrueConnector.Selectable          = false;
            this.startNode.OutConnector.Selectable = false;

            base.BackNode.OutConnector.Connector.Opacity  = 50;
            this.startNode.OutConnector.Connector.Opacity = 50;
            base.TrueConnector.Connector.Opacity          = 50;
        }
Esempio n. 2
0
 protected override void makeConnections()
 {
     TrueNode      = new HolderNode(this);
     TrueConnector = new ConnectorNode(this);
     TrueConnector.Connector.Opacity = 50;
     // trueConnector.Connector.Forward
     TrueConnector.Connector.Label = new Crainiate.Diagramming.Label("True");
     OutConnector.Connector.Label  = new Crainiate.Diagramming.Label("False");
     BackNode = new HolderNode(this);
     BackNode.OutConnector.EndNode           = this;
     BackNode.OutConnector.Connector.Opacity = 50;
     TrueNode.OutConnector.EndNode           = BackNode;
     TrueConnector.Selectable         = false;
     BackNode.OutConnector.Selectable = false;
     BackNode.Shape.Label             = new Crainiate.Diagramming.Label("B");
 }
Esempio n. 3
0
        /* public bool isEmptyElse() {
         *   return FalseNode.OutConnector.EndNode == BackfalseNode;
         * }*/
        protected override void makeConnections()
        {
            MiddleNode = new HolderNode(this);

            MiddleNode.Shape.Label = new Crainiate.Diagramming.Label("Done");
            ///////////////////truepart
            TrueNode                                  = new HolderNode(this);
            TrueNode.Shape.Label                      = new Crainiate.Diagramming.Label("Start IF");
            TrueConnector                             = new ConnectorNode(this);
            TrueConnector.Connector.Opacity           = 50;
            TrueConnector.Connector.Label             = new Crainiate.Diagramming.Label("True");
            BackNode                                  = new HolderNode(this);
            BackNode.Shape.Label                      = new Crainiate.Diagramming.Label("End IF");
            BackNode.OutConnector.EndNode             = this;
            BackNode.OutConnector.Connector.End.Shape = MiddleNode.Shape;
            BackNode.OutConnector.Connector.Opacity   = 50;
            TrueNode.OutConnector.EndNode             = BackNode;
            TrueConnector.Selectable                  = false;
            BackNode.OutConnector.Selectable          = false;
            BackNode.OutConnector.Connector.Label     = new Crainiate.Diagramming.Label("Done");
        }
Esempio n. 4
0
        protected override void makeConnections()
        {
            base.makeConnections();
            this.OutConnector = MiddleNode.OutConnector;

            /////////////////////////////false part
            FalseNode                                      = new HolderNode(this);
            FalseNode.Shape.Label                          = new Crainiate.Diagramming.Label("Start Else");
            FalseConnector                                 = new ConnectorNode(this);
            FalseConnector.Connector.Opacity               = 50;
            FalseConnector.Connector.Label                 = new Crainiate.Diagramming.Label("False");
            BackfalseNode                                  = new HolderNode(this);
            BackfalseNode.Shape.Label                      = new Crainiate.Diagramming.Label("End Else");
            BackfalseNode.OutConnector.EndNode             = this;
            BackfalseNode.OutConnector.Connector.End.Shape = MiddleNode.Shape;
            BackfalseNode.OutConnector.Connector.Opacity   = 50;
            FalseNode.OutConnector.EndNode                 = BackfalseNode;
            FalseConnector.Selectable                      = false;
            BackfalseNode.OutConnector.Selectable          = false;
            BackfalseNode.OutConnector.Connector.Label     = new Crainiate.Diagramming.Label("Done");
        }
Esempio n. 5
0
        protected override void makeConnections()
        {
            this.MiddleNode             = new HolderNode(this);
            this.MiddleNode.Shape.Label = new Crainiate.Diagramming.Label("Done");

            base.TrueNode                        = new HolderNode(this);
            base.TrueNode.Shape.Label            = new Crainiate.Diagramming.Label("Start IF");
            base.TrueConnector                   = new ConnectorNode(this);
            base.TrueConnector.Connector.Opacity = 50;
            base.TrueConnector.Connector.Label   = new Crainiate.Diagramming.Label("True");

            base.BackNode                                  = new HolderNode(this);
            base.BackNode.Shape.Label                      = new Crainiate.Diagramming.Label("End IF");
            base.BackNode.OutConnector.EndNode             = this;
            base.BackNode.OutConnector.Connector.End.Shape = this.MiddleNode.Shape;
            base.BackNode.OutConnector.Connector.Opacity   = 50;

            base.TrueNode.OutConnector.EndNode = base.BackNode;
            base.TrueConnector.Selectable      = false;

            base.BackNode.OutConnector.Selectable      = false;
            base.BackNode.OutConnector.Connector.Label = new Crainiate.Diagramming.Label("Done");
        }