public void PaintNavigationMap(MindMap map, float zoom, PaintEventArgs e) { if (map == null) { throw new ArgumentNullException(); } var graphics = new GdiGraphics(e.Graphics); ResetObjects(graphics, map); if (!map.BackColor.IsEmpty) { e.Graphics.Clear(map.BackColor); } if (map.Root != null) { Liner = LayoutManage.GetLiner(map.LayoutType); Font font = ChartBox.DefaultChartFont; var font2 = new GdiFont(font.FontFamily, font.Size * zoom); //GenerateFoldingButtonImage(map, zoom); PaintNavigationMap(graphics, map.Root, zoom, font2); PaintNavigationMapLinkLines(graphics, map.Root, zoom, font2); } }
public void Paint(MindMap map, RenderArgs args) { if (map == null) { throw new ArgumentNullException(); } ResetObjects(args.Graphics, map); //PaintBackground(map, args); if (map.Root != null) { Liner = LayoutManage.GetLiner(map.LayoutType); //GenerateFoldingButtonImage(map); PaintNode(map.Root, args); PaintLinkLines(map.Root, args); } }