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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_aoGroupRectangles System.Drawing.Rectangle[]
m_aoVertexLocations System.Drawing.PointF[]
m_oGraph IGraph

Méthodes publiques

Méthode Description
AssertValid ( ) : void
LayoutSaver ( IGraph graph ) : System

Initializes a new instance of the LayoutSaver class.

RestoreLayout ( ) : void

Méthodes protégées

Méthode Description
TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

LayoutSaver() public méthode

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

RestoreLayout() public méthode

public RestoreLayout ( ) : void
Résultat void

TryGetGroupsToDraw() protected méthode

protected TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean
oGroupsToDraw IList
Résultat System.Boolean

Property Details

m_aoGroupRectangles protected_oe property

protected Rectangle[],System.Drawing m_aoGroupRectangles
Résultat System.Drawing.Rectangle[]

m_aoVertexLocations protected_oe property

protected PointF[],System.Drawing m_aoVertexLocations
Résultat System.Drawing.PointF[]

m_oGraph protected_oe property

protected IGraph m_oGraph
Résultat IGraph