C# Class Smrf.NodeXL.ExcelTemplate.VertexLocationConverter

Class that converts a vertex location between coordinates used in the Excel workbook and coordinates used in the NodeXL graph.
Inheritance: Object
Mostra file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Properties

Property Type Description
MaximumXYWorkbook System.Single
MinimumXYWorkbook System.Single

Protected Properties

Property Type Description
WorkbookRange System.Single
m_oGraphRectangle System.Drawing.RectangleF

Public Methods

Method Description
GraphToWorkbook ( PointF graphLocation, System.Single &workbookX, System.Single &workbookY ) : void
VertexLocationConverter ( Rectangle graphRectangle ) : System

Initializes a new instance of the class.

WorkbookToGraph ( System.Single workbookX, System.Single workbookY ) : PointF

Private Methods

Method Description
AssertValid ( ) : void

Method Details

GraphToWorkbook() public method

public GraphToWorkbook ( PointF graphLocation, System.Single &workbookX, System.Single &workbookY ) : void
graphLocation System.Drawing.PointF
workbookX System.Single
workbookY System.Single
return void

VertexLocationConverter() public method

Initializes a new instance of the class.
public VertexLocationConverter ( Rectangle graphRectangle ) : System
graphRectangle System.Drawing.Rectangle /// Rectangle the graph was drawn within. ///
return System

WorkbookToGraph() public method

public WorkbookToGraph ( System.Single workbookX, System.Single workbookY ) : PointF
workbookX System.Single
workbookY System.Single
return System.Drawing.PointF

Property Details

MaximumXYWorkbook public_oe static_oe property

public static Single,System MaximumXYWorkbook
return System.Single

MinimumXYWorkbook public_oe static_oe property

public static Single,System MinimumXYWorkbook
return System.Single

WorkbookRange protected_oe property

protected Single,System WorkbookRange
return System.Single

m_oGraphRectangle protected_oe property

protected RectangleF,System.Drawing m_oGraphRectangle
return System.Drawing.RectangleF