C# Class Smrf.NodeXL.Layouts.GroupRectangleCalculator

Calculates a rectangle for each group of vertices.
This class is used when a LayoutStyle of is specified.

All methods are static.

Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
CalculateGroupRectangles ( Rectangle graphRectangle, IList sortedGroups ) : void
GetAreaPerVertex ( Rectangle oGraphRectangle, IEnumerable oGroups ) : Double

Private Methods

Method Description
CalculateAspectRatio ( RectangleF oRectangle ) : Double
GetRemainingEmptySpace ( IList oSortedGroups, RectangleF aoGroupRectangles, RectangleF oParentRectangle, Int32 iIndexOfFirstInsertedGroup, Int32 iIndexOfLastInsertedGroup ) : RectangleF
InsertGroupsIntoRectangle ( IList oSortedGroups, RectangleF aoGroupRectangles, RectangleF oParentRectangle, Int32 iIndexOfFirstGroupToInsert, Int32 iIndexOfLastGroupToInsert, Double dVerticesSum, Double dAreaPerVertex ) : void

Method Details

CalculateGroupRectangles() public static method

public static CalculateGroupRectangles ( Rectangle graphRectangle, IList sortedGroups ) : void
graphRectangle System.Drawing.Rectangle
sortedGroups IList
return void

GetAreaPerVertex() public static method

public static GetAreaPerVertex ( Rectangle oGraphRectangle, IEnumerable oGroups ) : Double
oGraphRectangle System.Drawing.Rectangle
oGroups IEnumerable
return Double