C# Class Smrf.NodeXL.ExcelTemplate.GraphImageCompositor

Composites a NodeXLControl and other elements into a UIElement.
Call the Composite method to composite a NodeXLControl with other elements into a new UIElement. Call when you are done with the UIElement. The UIElement can be used to create an image that can be saved to disk.
Inheritance: Object
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_iChildIndex System.Int32
m_oGraphImageCenterer Smrf.NodeXL.Visualization.Wpf.NodeXLControl.GraphImageCenterer
m_oGraphImageScaler Smrf.NodeXL.Visualization.Wpf.GraphImageScaler
m_oGrid System.Windows.Controls.Grid
m_oLayoutSaver Smrf.NodeXL.Layouts.LayoutSaver
m_oNodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
m_oParentPanel System.Windows.Controls.Panel

Public Methods

Method Description
Composite ( Double compositeWidth, Double compositeHeight, String headerText, String footerText, System headerFooterFont, IEnumerable legendControls ) : UIElement
GraphImageCompositor ( NodeXLControl nodeXLControl ) : System

Initializes a new instance of the GraphImageCompositor class.

RestoreNodeXLControl ( ) : void

Protected Methods

Method Description
CreateHeaderOrFooterLabel ( String sLabelText, Double dLabelWidth, System oLabelFont, System.Windows.Controls.Label &oLabel, Double &dLabelHeight ) : void
CreateLegendImages ( IEnumerable oLegendControls, Double dImageWidth, IEnumerable &oImages, Double &dTotalImageHeight ) : void

Private Methods

Method Description
AssertValid ( ) : void

Method Details

Composite() public method

public Composite ( Double compositeWidth, Double compositeHeight, String headerText, String footerText, System headerFooterFont, IEnumerable legendControls ) : UIElement
compositeWidth Double
compositeHeight Double
headerText String
footerText String
headerFooterFont System
legendControls IEnumerable
return UIElement

CreateHeaderOrFooterLabel() protected method

protected CreateHeaderOrFooterLabel ( String sLabelText, Double dLabelWidth, System oLabelFont, System.Windows.Controls.Label &oLabel, Double &dLabelHeight ) : void
sLabelText String
dLabelWidth Double
oLabelFont System
oLabel System.Windows.Controls.Label
dLabelHeight Double
return void

CreateLegendImages() protected method

protected CreateLegendImages ( IEnumerable oLegendControls, Double dImageWidth, IEnumerable &oImages, Double &dTotalImageHeight ) : void
oLegendControls IEnumerable
dImageWidth Double
oImages IEnumerable
dTotalImageHeight Double
return void

GraphImageCompositor() public method

Initializes a new instance of the GraphImageCompositor class.
public GraphImageCompositor ( NodeXLControl nodeXLControl ) : System
nodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl /// The NodeXLControl that will be composited by . /// This is assumed to be hosted in a Panel. ///
return System

RestoreNodeXLControl() public method

public RestoreNodeXLControl ( ) : void
return void

Property Details

m_iChildIndex protected_oe property

protected Int32,System m_iChildIndex
return System.Int32

m_oGraphImageCenterer protected_oe property

protected NodeXLControl.GraphImageCenterer,Smrf.NodeXL.Visualization.Wpf m_oGraphImageCenterer
return Smrf.NodeXL.Visualization.Wpf.NodeXLControl.GraphImageCenterer

m_oGraphImageScaler protected_oe property

protected GraphImageScaler,Smrf.NodeXL.Visualization.Wpf m_oGraphImageScaler
return Smrf.NodeXL.Visualization.Wpf.GraphImageScaler

m_oGrid protected_oe property

protected Grid,System.Windows.Controls m_oGrid
return System.Windows.Controls.Grid

m_oLayoutSaver protected_oe property

protected LayoutSaver,Smrf.NodeXL.Layouts m_oLayoutSaver
return Smrf.NodeXL.Layouts.LayoutSaver

m_oNodeXLControl protected_oe property

protected NodeXLControl,Smrf.NodeXL.Visualization.Wpf m_oNodeXLControl
return Smrf.NodeXL.Visualization.Wpf.NodeXLControl

m_oParentPanel protected_oe property

protected Panel,System.Windows.Controls m_oParentPanel
return System.Windows.Controls.Panel