Beispiel #1
0
        /// <summary>
        /// Create pathway canvas.
        /// </summary>
        /// <param name="model">the EcellModel.</param>
        private void CreateCanvas(EcellModel model)
        {
            // Create canvas
            Canvas = new CanvasControl(this, model.ModelID);
            m_layerView.ResetLayers(model.Layers);

            m_menu.ResetEventHandler();
            m_menu.Zoom(1f);
            RaiseCanvasChange();
        }
Beispiel #2
0
        /// <summary>
        /// the constructor for PathwayView.
        /// set the handler of event and user control.
        /// </summary>
        public PathwayControl(PathwayWindow window)
        {
            this.m_window = window;
            // Create Internal object.
            m_canvas = null;
            m_csManager = new ComponentManager();
            SetNodeIcons();
            // Create menus
            m_menu = new MenuControl(this);
            // Set AnimationControl
            m_animCon = new AnimationControl(this);
            // Preparing Interfaces
            m_pathwayView = new PathwayView(this);
            m_layerView = new LayerView(this);
            m_toolBox = new Stencils(this);
            m_layout = new LayoutPane(m_window.Environment);
            m_layout.ApplyButton.Click += new EventHandler(ApplyButton_Click);

            m_window.PluginManager.Refresh += new EventHandler(PluginManager_Refresh);
        }
Beispiel #3
0
 public void SetUp()
 {
     Ecell.IDE.Plugins.PathwayWindow.PathwayControl control = null;
     string modelID = null;
     _unitUnderTest = new CanvasControl(control, modelID);
 }
Beispiel #4
0
 public void TearDown()
 {
     _unitUnderTest = null;
 }
Beispiel #5
0
 public void TestConstructorCanvasControl()
 {
     Ecell.IDE.Plugins.PathwayWindow.PathwayControl control = null;
     string modelID = null;
     CanvasControl testCanvasControl = new CanvasControl(control, modelID);
     Assert.IsNotNull(testCanvasControl, "Constructor of type, CanvasControl failed to create instance.");
     Assert.Fail("Create or modify test(s).");
 }