Esempio n. 1
0
        internal void RefreshScreenCoordinates()
        {
            Thickness margin = view.Margin;

            sMax.X    = ((int)view.Width - (int)margin.Left - (int)margin.Right) / 2;
            sMax.Y    = ((int)view.Height - (int)margin.Top - (int)margin.Bottom) / 2;
            sOrigin.X = sMax.X + (int)margin.Left;
            sOrigin.Y = sMax.Y + (int)margin.Top;
            drawRoot.RefreshScreenCoordinates(sOrigin, sMax);
        }
Esempio n. 2
0
        override internal void RefreshScreenCoordinates(HTCoordS sOrigin, HTCoordS sMax)
        {
            base.RefreshScreenCoordinates(sOrigin, sMax);
            HTDrawNode child = null;

            for (IEnumerator i = Children(); i.MoveNext();)
            {
                child = (HTDrawNode)i.Current;
                child.RefreshScreenCoordinates(sOrigin, sMax);
                HTGeodesic geod = (HTGeodesic)geodesics[child];
                if (geod != null)
                {
                    geod.RefreshScreenCoordinates(sOrigin, sMax);
                }
            }
        }