C# Class Smrf.NodeXL.ExcelTemplate.ReadabilityMetricCalculator2

Calculates readability metrics for the graph.
The readability metrics calculated by this class are based on work done by Cody Dunne and Ben Shneiderman at the University of Maryland.

This graph metric calculator differs from most other calculators in that it uses the vertices' locations and shapes. The other calculators look only at how the vertices are connected to each other. To avoid making the lower-level Algorithms project dependent on higher-level drawing classes (in particular, the VertexDrawingHistory class), there is no corresponding lower-level ReadabilityMetricCalculator class in the Smrf.NodeXL.Algorithms namespace, and the readability metrics cannot be calculated outside of this ExcelTemplate project.

Inheritance: GraphMetricCalculatorBase2
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
m_oGraphRectangleSize System.Windows.Size

Méthodes publiques

Méthode Description
AssertValid ( ) : void
ReadabilityMetricCalculator2 ( System graphRectangleSize ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean

Méthodes protégées

Méthode Description
AddMissingPerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, GraphMetricValueWithID>.Dictionary oDictionary ) : void
CancellationPending ( BackgroundWorker oBackgroundWorker, Int32 iCalculationsCompleted, Int32 iTotalCalculations, String sProgressMessage ) : System.Boolean
CloneAndFilterGraph ( IGraph oGraph ) : IGraph
EdgesIntersect ( IEdge oEdge1, IEdge oEdge2 ) : System.Boolean
GetArea ( System.Windows.Media.Geometry oGeometry ) : Double
GetEdgeRectangle ( IEdge oEdge ) : Rect
TryCalculateEdgeInformation ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary &oEdgeInformation ) : System.Boolean
TryCalculateGraphRectangleCoverage ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dGraphRectangleCoverage ) : System.Boolean
TryCalculateOverallEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallEdgeCrossings ) : System.Boolean
TryCalculateOverallMetrics ( IGraph oGraphClone, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
TryCalculateOverallVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallVertexOverlap ) : System.Boolean
TryCalculatePerEdgeAndPerVertexMetrics ( IGraph oGraphClone, IGraph oGraph, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
TryCalculatePerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, ICollection &oPerEdgeEdgeCrossings ) : System.Boolean
TryCalculatePerVertexEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexEdgeCrossings ) : System.Boolean
TryCalculatePerVertexVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexVertexOverlap ) : System.Boolean
TryCalculateVertexInformations ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary &oVertexInformations ) : System.Boolean
TryCombineEdges ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds ) : System.Boolean
TryCombineVertices ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds, Double &dSumOfVertexAreas ) : System.Boolean

Method Details

AddMissingPerEdgeEdgeCrossings() protected méthode

protected AddMissingPerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, GraphMetricValueWithID>.Dictionary oDictionary ) : void
oGraphClone IGraph
oGraph IGraph
oDictionary GraphMetricValueWithID>.Dictionary
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CancellationPending() protected méthode

protected CancellationPending ( BackgroundWorker oBackgroundWorker, Int32 iCalculationsCompleted, Int32 iTotalCalculations, String sProgressMessage ) : System.Boolean
oBackgroundWorker System.ComponentModel.BackgroundWorker
iCalculationsCompleted System.Int32
iTotalCalculations System.Int32
sProgressMessage String
Résultat System.Boolean

CloneAndFilterGraph() protected méthode

protected CloneAndFilterGraph ( IGraph oGraph ) : IGraph
oGraph IGraph
Résultat IGraph

EdgesIntersect() protected méthode

protected EdgesIntersect ( IEdge oEdge1, IEdge oEdge2 ) : System.Boolean
oEdge1 IEdge
oEdge2 IEdge
Résultat System.Boolean

GetArea() protected méthode

protected GetArea ( System.Windows.Media.Geometry oGeometry ) : Double
oGeometry System.Windows.Media.Geometry
Résultat Double

GetEdgeRectangle() protected méthode

protected GetEdgeRectangle ( IEdge oEdge ) : Rect
oEdge IEdge
Résultat Rect

ReadabilityMetricCalculator2() public méthode

Initializes a new instance of the class.
public ReadabilityMetricCalculator2 ( System graphRectangleSize ) : System
graphRectangleSize System /// Size of the rectangle containing the graph, in WPF units. ///
Résultat System

TryCalculateEdgeInformation() protected méthode

protected TryCalculateEdgeInformation ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary &oEdgeInformation ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
Résultat System.Boolean

TryCalculateGraphMetrics() public méthode

public TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean
graph IGraph
calculateGraphMetricsContext CalculateGraphMetricsContext
graphMetricColumns GraphMetricColumn
Résultat System.Boolean

TryCalculateGraphRectangleCoverage() protected méthode

protected TryCalculateGraphRectangleCoverage ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dGraphRectangleCoverage ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
dGraphRectangleCoverage Nullable
Résultat System.Boolean

TryCalculateOverallEdgeCrossings() protected méthode

protected TryCalculateOverallEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
dOverallEdgeCrossings Nullable
Résultat System.Boolean

TryCalculateOverallMetrics() protected méthode

protected TryCalculateOverallMetrics ( IGraph oGraphClone, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
oGraphClone IGraph
oReadabilityMetricUserSettings ReadabilityMetricUserSettings
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oGraphMetricColumns LinkedList
Résultat System.Boolean

TryCalculateOverallVertexOverlap() protected méthode

protected TryCalculateOverallVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallVertexOverlap ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
dOverallVertexOverlap Nullable
Résultat System.Boolean

TryCalculatePerEdgeAndPerVertexMetrics() protected méthode

protected TryCalculatePerEdgeAndPerVertexMetrics ( IGraph oGraphClone, IGraph oGraph, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
oGraphClone IGraph
oGraph IGraph
oReadabilityMetricUserSettings ReadabilityMetricUserSettings
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oGraphMetricColumns LinkedList
Résultat System.Boolean

TryCalculatePerEdgeEdgeCrossings() protected méthode

protected TryCalculatePerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, ICollection &oPerEdgeEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oGraph IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oPerEdgeEdgeCrossings ICollection
Résultat System.Boolean

TryCalculatePerVertexEdgeCrossings() protected méthode

protected TryCalculatePerVertexEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oPerVertexEdgeCrossings ICollection
Résultat System.Boolean

TryCalculatePerVertexVertexOverlap() protected méthode

protected TryCalculatePerVertexVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexVertexOverlap ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
oPerVertexVertexOverlap ICollection
Résultat System.Boolean

TryCalculateVertexInformations() protected méthode

protected TryCalculateVertexInformations ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary &oVertexInformations ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
Résultat System.Boolean

TryCombineEdges() protected méthode

protected TryCombineEdges ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
sProgressMessage String
oUnionOfBounds System.Windows.Media.GeometryGroup
Résultat System.Boolean

TryCombineVertices() protected méthode

protected TryCombineVertices ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds, Double &dSumOfVertexAreas ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
sProgressMessage String
oUnionOfBounds System.Windows.Media.GeometryGroup
dSumOfVertexAreas Double
Résultat System.Boolean

Property Details

m_oGraphRectangleSize protected_oe property

protected Size,System.Windows m_oGraphRectangleSize
Résultat System.Windows.Size