C# Class Smrf.NodeXL.Layouts.LayoutSaver

Saves and restores a layout.
Pass a laid-out graph to the constructor, which saves the graph's vertex locations and group rectangles in private data. Call to restore the vertex locations and group rectangles to their saved values.

The number of vertices and group rectangles must remain constant between the two calls.

Inheritance: LayoutsBase
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_aoGroupRectangles System.Drawing.Rectangle[]
m_aoVertexLocations System.Drawing.PointF[]
m_oGraph IGraph

Public Methods

Method Description
AssertValid ( ) : void
LayoutSaver ( IGraph graph ) : System

Initializes a new instance of the LayoutSaver class.

RestoreLayout ( ) : void

Protected Methods

Method Description
TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

LayoutSaver() public method

Initializes a new instance of the LayoutSaver class.
public LayoutSaver ( IGraph graph ) : System
graph IGraph
return System

RestoreLayout() public method

public RestoreLayout ( ) : void
return void

TryGetGroupsToDraw() protected method

protected TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean
oGroupsToDraw IList
return System.Boolean

Property Details

m_aoGroupRectangles protected property

protected Rectangle[],System.Drawing m_aoGroupRectangles
return System.Drawing.Rectangle[]

m_aoVertexLocations protected property

protected PointF[],System.Drawing m_aoVertexLocations
return System.Drawing.PointF[]

m_oGraph protected property

protected IGraph m_oGraph
return IGraph