Ejemplo n.º 1
0
        /// <summary>
        /// Ensures the nodes are visible in the adapted control</summary>
        /// <param name="nodes">Nodes</param>
        public void EnsureVisible(IEnumerable <TNode> nodes)
        {
            Rectangle bounds = GetBounds(nodes);

            TransformAdapters.EnsureVisible(m_transformAdapter, bounds);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Frames a node in the adapted control</summary>
        /// <param name="node">GraphNode</param>
        public void Frame(TNode node)
        {
            Rectangle bounds = GetBounds(node);

            TransformAdapters.Frame(m_transformAdapter, bounds);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Frames the given nodes in the adapted control</summary>
        /// <param name="nodes">Collection of nodes</param>
        public void Frame(IEnumerable <TNode> nodes)
        {
            Rectangle bounds = GetBounds(nodes);

            TransformAdapters.Frame(m_transformAdapter, bounds);
        }