Smrf.NodeXL.Visualization.Wpf.NodeXLControl.GraphImageCenterer.GraphImageCenterer C# (CSharp) Method

GraphImageCenterer() public method

Initializes a new instance of the GraphImageCenterer class.
public GraphImageCenterer ( NodeXLControl nodeXLControl ) : System
nodeXLControl NodeXLControl /// The control for which a graph image will be created. ///
return System
    public GraphImageCenterer
    (
        NodeXLControl nodeXLControl
    )
    {
        Debug.Assert(nodeXLControl != null);

        m_oNodeXLControl = nodeXLControl;

        m_dOriginalTranslateTransformForRenderX =
            m_dOriginalTranslateTransformForRenderY =
            m_dOriginalScaleTransformForRenderCenterX =
            m_dOriginalScaleTransformForRenderCenterY =
            Double.MinValue;

        AssertValid();
    }