public static EquationBase CreateEquation(EquationContainer equationParent, Position position)
 {
     CompositeBase equation = null;
     switch (position)
     {
         case Position.Bottom:
             equation = new CompositeBottom(equationParent);
             break;
         case Position.Top:
             equation = new CompositeTop(equationParent);
             break;
         case Position.BottomAndTop:
             equation = new CompositeBottomTop(equationParent);
             break;
         case Position.Sub:
             equation = new CompositeSub(equationParent);
             break;
         case Position.Super:
             equation = new CompositeSuper(equationParent);
             break;
         case Position.SubAndSuper:
             equation = new CompositeSubSuper(equationParent);
             break;
     }
     equation.ChangeMainEquationSize(1.3);
     return equation;
 }
Ejemplo n.º 2
0
        public static EquationBase CreateEquation(EquationContainer equationParent, Position position)
        {
            CompositeBase equation = null;

            switch (position)
            {
            case Position.Bottom:
                equation = new CompositeBottom(equationParent);
                break;

            case Position.Top:
                equation = new CompositeTop(equationParent);
                break;

            case Position.BottomAndTop:
                equation = new CompositeBottomTop(equationParent);
                break;

            case Position.Sub:
                equation = new CompositeSub(equationParent);
                break;

            case Position.Super:
                equation = new CompositeSuper(equationParent);
                break;

            case Position.SubAndSuper:
                equation = new CompositeSubSuper(equationParent);
                break;
            }
            equation.ChangeMainEquationSize(1.3);
            return(equation);
        }
Ejemplo n.º 3
0
 public static EquationBase CreateEquation(EquationContainer equationParent, Position position)
 {
     EquationBase equation = null;
     switch (position)
     {
         case Position.Bottom:
             equation = new CompositeBottom(equationParent);
             break;
         case Position.Top:
             equation = new CompositeTop(equationParent);
             break;
         case Position.BottomAndTop:
             equation = new CompositeBottomTop(equationParent);
             break;
     }
     return equation;
 }
Ejemplo n.º 4
0
        public static EquationBase CreateEquation(EquationContainer equationParent, Position position)
        {
            EquationBase equation = null;

            switch (position)
            {
            case Position.Bottom:
                equation = new CompositeBottom(equationParent);
                break;

            case Position.Top:
                equation = new CompositeTop(equationParent);
                break;

            case Position.BottomAndTop:
                equation = new CompositeBottomTop(equationParent);
                break;
            }
            return(equation);
        }