Example #1
0
        public NetronAdaptorGraph(
            IMutableBidirectionalVertexAndEdgeListGraph g,
            NetronPanel panel,
            IShapeVertexProvider shapeProvider,
            IConnectionEdgeProvider connectionProvider,
            IConnectorChooser connectorChooser
            )
        {
            if (g == null)
            {
                throw new ArgumentNullException("g");
            }
            if (panel == null)
            {
                throw new ArgumentNullException("panel");
            }
            if (shapeProvider == null)
            {
                throw new ArgumentNullException("shapeArgument");
            }
            if (connectionProvider == null)
            {
                throw new ArgumentNullException("connectionProvider");
            }
            if (connectorChooser == null)
            {
                throw new ArgumentNullException("connectorChooser");
            }

            this.visitedGraph       = g;
            this.panel              = panel;
            this.shapeProvider      = shapeProvider;
            this.connectionProvider = connectionProvider;
            this.connectorChooser   = connectorChooser;
        }
        public NetronAdaptorGraph(
            IMutableBidirectionalVertexAndEdgeListGraph g,
            NetronPanel panel,
            IShapeVertexProvider shapeProvider,
            IConnectionEdgeProvider connectionProvider,
            IConnectorChooser connectorChooser
            )
        {
            if (g==null)
                throw new ArgumentNullException("g");
            if (panel==null)
                throw new ArgumentNullException("panel");
            if (shapeProvider==null)
                throw new ArgumentNullException("shapeArgument");
            if (connectionProvider==null)
                throw new ArgumentNullException("connectionProvider");
            if (connectorChooser == null)
                throw new ArgumentNullException("connectorChooser");

            this.visitedGraph = g;
            this.panel = panel;
            this.shapeProvider = shapeProvider;
            this.connectionProvider = connectionProvider;
            this.connectorChooser = connectorChooser;
        }
Example #3
0
        private void InitializeQuickNetronPanel()
        {
            this.HitEvent       += new HitEventHandler(QuickNetronPanel_HitEvent);
            this.EntitySelected += new StatusEventHandler(QuickNetronPanel_SelectEvent);

            this.shapeProvider      = new TypeShapeVertexProvider(typeof(PropertyGridShape));
            this.connectionProvider = new TypeConnectionEdgeProvider(typeof(SplineConnection));
            this.connectorChooser   = new MinDistanceConnectorChooser();

            ZoomWheelMouseBehavior zoom = new ZoomWheelMouseBehavior();

            zoom.Attach(this);
        }
        private void InitializeQuickNetronPanel()
        {
            this.HitEvent += new HitEventHandler(QuickNetronPanel_HitEvent);
            this.EntitySelected +=new StatusEventHandler(QuickNetronPanel_SelectEvent);

            this.shapeProvider= new TypeShapeVertexProvider(typeof(PropertyGridShape));
            this.connectionProvider = new TypeConnectionEdgeProvider(typeof(SplineConnection));
            this.connectorChooser = new MinDistanceConnectorChooser();

            ZoomWheelMouseBehavior zoom = new ZoomWheelMouseBehavior();
            zoom.Attach(this);
        }