예제 #1
0
        void UpdateGraphBoundingBoxWithCheck(GeometryObject geomObj)
        {
            Rectangle bBox = geomObj.BoundingBox;
            {
                GeomEdge edge = geomObj as GeomEdge;
                if (edge != null && edge.Label != null)
                {
                    bBox.Add(edge.Label.BoundingBox);
                }
            }
            Point p = new Point(-graph.Margins, graph.Margins);

            GraphBoundingBoxGetsExtended |= graph.ExtendBoundingBoxWithCheck(bBox.LeftTop + p) || graph.ExtendBoundingBoxWithCheck(bBox.RightBottom - p);
        }