Ejemplo n.º 1
0
        // END HERZUM SPRINT 1.1 IF

        public DecisionNodeControl(ExperimentNode node, ApplicationContext applicationContext)
            : base(node, applicationContext, s_waitForAnyAllHandleXLocation, s_waitForAnyAllHandleYLocation)
        {
            PaddingLeft   = 30.0;
            PaddingTop    = 7.0;
            PaddingRight  = 40.0;
            PaddingBottom = 7.0;

            // HERZUM SPRINT 1.1 IF
            m_addScopeInDecisionComponent = new PixButtonHandle(this, new QuickActionLocator(35, 0.8, QuickActionPosition.Right),
                                                                s_newScopeIcon, AddScopeInDecisionComponent);
            // END HERZUM SPRINT 1.1 IF

            // HERZUM SPRINT 2 TLAB 131
            foreach (ExperimentNodeConnection edge in ExperimentNode.Owner.Edges)
            {
                // HERZUM SPRINT 2.3 TLAB 140
                // if (edge.Target is ExitDecisionNode){
                if (edge.Source.Equals(this.ExperimentNode) && edge.Target is ExitDecisionNode)
                {
                    // END HERZUM SPRINT 2.3 TLAB 140
                    IsIfNode = true;
                    break;
                }
            }
            // END HERZUM SPRINT 2 TLAB 131
        }
Ejemplo n.º 2
0
        // HERZUM SPRINT 5.2: TLAB-248

        private void RedrawButton()
        {
            //HERZUM SPRINT 5.5 TLAB-253
            m_resizeScope_NorthWest = new PixButtonHandle(this, new AbsoluteLocator(0.0, -5.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                          s_resizeIcon, ResizeScopeNorthWest, (int)rect.X2, (int)rect.Y2, valueZoom, offsetPanX, offsetPanY);
            m_resizeScope_NorthEast = new PixButtonHandle(this, new AbsoluteLocator(0.0, -5.0, AbsoluteLocator.AbsoluteTo.TopRight),
                                                          s_resizeIcon, ResizeScopeNorthEast, (int)rect.X, (int)rect.Y2, valueZoom, offsetPanX, offsetPanY);
            m_resizeScope_SouthEast = new PixButtonHandle(this, new AbsoluteLocator(0.0, PaddingBottom + 25, AbsoluteLocator.AbsoluteTo.TopRight),
                                                          s_resizeIcon, ResizeScopeSouthEast, (int)rect.X, (int)rect.Y, valueZoom, offsetPanX, offsetPanY);
            m_resizeScope_SouthWest = new PixButtonHandle(this, new AbsoluteLocator(0.0, PaddingBottom + 25, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                          s_resizeIcon, ResizeScopeSouthWest, (int)rect.X2, (int)rect.Y, valueZoom, offsetPanX, offsetPanY);
            //END HERZUM SPRINT 5.5 TLAB-253
        }
Ejemplo n.º 3
0
        // HERZUM SPRINT 5.2: TLAB-248
        private void SetPixButtonHandle()
        {
            m_minScope = new PixButtonHandle(this, new AbsoluteLocator(15.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                             s_minIcon, IconizeScope);

            m_normalScope = new PixButtonHandle(this, new AbsoluteLocator(30.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                s_normalIcon, NormalizeScope);

            m_maxScope = new PixButtonHandle(this, new AbsoluteLocator(50.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                             s_maxIcon, MaximizeScope);

            // HERZUM SPRINT 5: TLAB-233, TLAB-234
            m_minDisabledScope = new PixButtonHandle(this, new AbsoluteLocator(15.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                     s_minDisabledIcon, DisableIcon);

            m_normalDisabledScope = new PixButtonHandle(this, new AbsoluteLocator(30.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                        s_normalDisabledIcon, DisableIcon);

            m_maxDisabledScope = new PixButtonHandle(this, new AbsoluteLocator(50.0, 15.0, AbsoluteLocator.AbsoluteTo.TopLeft),
                                                     s_maxDisabledIcon, DisableIcon);
            // END HERZUM SPRINT 5: TLAB-233, TLAB-234
        }
Ejemplo n.º 4
0
 public CompositeComponentControl(ExperimentNode node, ApplicationContext applicationContext) : base(node, applicationContext)
 {
     m_displayComponentSubGraph = new PixButtonHandle(this, new QuickActionLocator(35, 0.8, QuickActionPosition.Right),
                                                      s_magnifierGlassIcon, DisplayComponentSubGraph);
 }