コード例 #1
0
ファイル: TestLineHandler.cs プロジェクト: ecell/ecell3-ide
 public void TestConstructorLineHandler()
 {
     Ecell.IDE.Plugins.PathwayWindow.CanvasControl canvas = null;
     EdgeHandler testLineHandler = new EdgeHandler(canvas);
     Assert.IsNotNull(testLineHandler, "Constructor of type, LineHandler failed to create instance.");
     Assert.Fail("Create or modify test(s).");
 }
コード例 #2
0
ファイル: CanvasControl.cs プロジェクト: ecell/ecell3-ide
        /// <summary>
        /// the constructor with initial parameters.
        /// </summary>
        /// <param name="control">PathwayControl.</param>
        /// <param name="modelID">Model id.</param>
        public CanvasControl(PathwayControl control, string modelID)
        {
            m_con = control;
            m_modelId = modelID;

            // Preparing PathwayViewCanvas
            m_pCanvas = new PPathwayCanvas(this);
            // Preparing OverviewCanvas
            m_overviewCanvas = new POverviewCanvas(this);
            m_pCanvas.Camera.RemoveLayer(m_pCanvas.Layer);
            m_pCanvas.Camera.ViewTransformChanged += new PPropertyEventHandler(Camera_ViewChanged);
            m_pCanvas.Camera.BoundsChanged += new PPropertyEventHandler(Camera_ViewChanged);
            m_pCanvas.BackColor = BrushManager.ParseBrushToColor(m_bgBrush);

            // Preparing layer list
            m_layers = new Dictionary<string, PPathwayLayer>();

            // Preparing system layer
            m_defaultLayer = new PPathwayLayer(LayerView.DEFAULT_LAYER);
            AddLayer(m_defaultLayer);
            // Preparing control layer
            m_ctrlLayer = new PPathwayLayer("");
            AddLayer(m_ctrlLayer);
            //m_pCanvas.Root.AddChild(m_ctrlLayer);
            //m_pCanvas.Camera.AddLayer(m_ctrlLayer);

            // Preparing system ResizeHandlers
            m_lineHandler = new EdgeHandler(this);

            // Set ViewMode
            m_showingId = m_con.ShowingID;
            m_focusMode = m_con.FocusMode;
        }
コード例 #3
0
ファイル: TestLineHandler.cs プロジェクト: ecell/ecell3-ide
 public void TearDown()
 {
     _unitUnderTest = null;
 }
コード例 #4
0
ファイル: TestLineHandler.cs プロジェクト: ecell/ecell3-ide
 public void SetUp()
 {
     Ecell.IDE.Plugins.PathwayWindow.CanvasControl canvas = null;
     _unitUnderTest = new EdgeHandler(canvas);
 }