/// <summary>
        /// Calculates its and its children positions
        /// </summary>
        public static void CalculatePositions(IDrawableSymbol symbol)
        {
            SimpleSymbolDrawable.CalculatePositions(symbol);
            PureDrawableSymbol pDrawable = symbol.PureDrawable;

            pDrawable.InsertedRectX      = pDrawable.Rectangle.X;
            pDrawable.InsertedRectY      = pDrawable.Rectangle.Y;
            pDrawable.InsertedRectHeight = pDrawable.Rectangle.Height;
            pDrawable.InsertedRectWidth  = pDrawable.WidthInsert;
            pDrawable.InsertedRectX      = pDrawable.InsertedRect.X - pDrawable.WidthInsert / 2;
        }
Exemple #2
0
        /// <summary>
        /// Sets location on toolbar
        /// </summary>
        /// <param name="x">the x position</param>
        /// <param name="y">the y position</param>

        /*public void SetLocationOnTable(int x, int y)
         * {
         *  pDrawable.RectForShow.Location = new Point(x, y);
         * }*/


        public void CalculatePositions()
        {
            SimpleSymbolDrawable.CalculatePositions(this);
            IDrawableSymbol    ds        = this;
            PureDrawableSymbol pDrawable = ds.PureDrawable;

            pDrawable.InsertedRectX      = pDrawable.Rectangle.X;
            pDrawable.InsertedRectY      = pDrawable.Rectangle.Y;
            pDrawable.InsertedRectHeight = pDrawable.Rectangle.Height;
            pDrawable.InsertedRectWidth  = pDrawable.WidthInsert;
            pDrawable.InsertedRectX      = pDrawable.InsertedRect.X - pDrawable.WidthInsert / 2;
        }
 public void CalculatePositions()
 {
     SimpleSymbolDrawable.CalculatePositions(this);
 }
Exemple #4
0
 void IDrawableSymbol.CalculatePositions()
 {
     SimpleSymbolDrawable.CalculatePositions(this);
 }