Exemplo n.º 1
0
 public Decorated(EquationContainer parent, DecorationType decorationType, Position decorationPosition)
     : base(parent)
 {
     ActiveChild             = rowContainer = new RowContainer(this);
     this.decorationType     = decorationType;
     this.decorationPosition = decorationPosition;
     decoration = new DecorationDrawing(this, decorationType);
     this.childEquations.Add(rowContainer);
     this.childEquations.Add(decoration);
 }
Exemplo n.º 2
0
        void CreateDecorations()
        {
            switch (arrowType)
            {
            case ArrowType.LeftArrow:
                arrow1 = new DecorationDrawing(this, DecorationType.LeftArrow);
                childEquations.Add(arrow1);
                break;

            case ArrowType.RightArrow:
                arrow1 = new DecorationDrawing(this, DecorationType.RightArrow);
                childEquations.Add(arrow1);
                break;

            case ArrowType.DoubleArrow:
                arrow1 = new DecorationDrawing(this, DecorationType.DoubleArrow);
                childEquations.Add(arrow1);
                break;

            case ArrowType.RightLeftArrow:
            case ArrowType.RightSmallLeftArrow:
            case ArrowType.SmallRightLeftArrow:
                arrow1 = new DecorationDrawing(this, DecorationType.RightArrow);
                arrow2 = new DecorationDrawing(this, DecorationType.LeftArrow);
                childEquations.Add(arrow1);
                childEquations.Add(arrow2);
                break;

            case ArrowType.RightLeftHarpoon:
            case ArrowType.RightSmallLeftHarpoon:
            case ArrowType.SmallRightLeftHarpoon:
                arrow1 = new DecorationDrawing(this, DecorationType.RightHarpoonUpBarb);
                arrow2 = new DecorationDrawing(this, DecorationType.LeftHarpoonDownBarb);
                childEquations.Add(arrow1);
                childEquations.Add(arrow2);
                break;
            }
        }
Exemplo n.º 3
0
 void CreateDecorations()
 {
     switch (arrowType)
     {
         case ArrowType.LeftArrow:
             arrow1 = new DecorationDrawing(this, DecorationType.LeftArrow);
             childEquations.Add(arrow1);
             break;
         case ArrowType.RightArrow:
             arrow1 = new DecorationDrawing(this, DecorationType.RightArrow);
             childEquations.Add(arrow1);
             break;
         case ArrowType.DoubleArrow:
             arrow1 = new DecorationDrawing(this, DecorationType.DoubleArrow);
             childEquations.Add(arrow1);
             break;
         case ArrowType.RightLeftArrow:
         case ArrowType.RightSmallLeftArrow:
         case ArrowType.SmallRightLeftArrow:
             arrow1 = new DecorationDrawing(this, DecorationType.RightArrow);
             arrow2 = new DecorationDrawing(this, DecorationType.LeftArrow);
             childEquations.Add(arrow1);
             childEquations.Add(arrow2);
             break;
         case ArrowType.RightLeftHarpoon:
         case ArrowType.RightSmallLeftHarpoon:
         case ArrowType.SmallRightLeftHarpoon:
             arrow1 = new DecorationDrawing(this, DecorationType.RightHarpoonUpBarb);
             arrow2 = new DecorationDrawing(this, DecorationType.LeftHarpoonDownBarb);
             childEquations.Add(arrow1);
             childEquations.Add(arrow2);
             break;
     }
 }