Exemplo n.º 1
0
        private void ResetNodeTextSize(NodeView nView)
        {
            MapNode node = nView.Node;

            nView.RefreshText();

            if (node == node.Tree.RootNode)
            {
                node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            }
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
Exemplo n.º 2
0
        private void IncreaseNodeTextSize(NodeView nView, int width)
        {
            MapNode node = nView.Node;

            nView.RefreshText(new SizeF(width, nView.RecText.Height));

            if (node == node.Tree.RootNode)
            {
                node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            }
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
Exemplo n.º 3
0
        private void ResetNodeTextSize(NodeView nView)
        {
            MapNode node = nView.Node;

            nView.RefreshText();

            if (node == node.Tree.RootNode) node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
Exemplo n.º 4
0
        private void IncreaseNodeTextSize(NodeView nView, int width)
        {
            MapNode node = nView.Node;

            nView.RefreshText(new SizeF(width, nView.RecText.Height));

            if (node == node.Tree.RootNode) node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }