C# Class Smrf.NodeXL.ExcelTemplate.AutoFillResultsLegendControl

Displays a graph legend containing the results of the autofill feature.
Call Update to specify the autofill results to display in the legend.

Call Clear to clear the legend.

Update sets the control's height to allow the entire legend to fit within the control.

See the WorkbookAutoFiller class for details on the autofill feature.

Inheritance: LegendControlBase
ファイルを表示 Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_iLastResizeWidth System.Int32
m_oAutoFillWorkbookResults AutoFillWorkbookResults

Public Methods

Method Description
AssertValid ( ) : void
AutoFillResultsLegendControl ( ) : System

Initializes a new instance of the class.

Clear ( ) : void
Update ( AutoFillWorkbookResults autoFillWorkbookResults ) : void

Protected Methods

Method Description
DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
Draw ( DrawingObjects oDrawingObjects ) : Int32
DrawAutoFillWorkbookResults ( DrawingObjects oDrawingObjects ) : Int32
DrawAutoFilledAlphaResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Double dDestinationNumber1, Double dDestinationNumber2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, String sSourceCalculationMinimum, String sSourceCalculationMaximum, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawColorCategoryResults ( DrawingObjects oDrawingObjects, ICollection oCategoryNames, GetShapeAndColorForCategory oShapeAndColorGetter, Rectangle oColumnRectangle, Int32 &iTop ) : void
DrawColorColumnResults ( DrawingObjects oDrawingObjects, String sCaption, AutoFillColorColumnResults oColorResults, VertexShape eCategoryShape, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawExcelColumnNameAndCaption ( DrawingObjects oDrawingObjects, String sColumnName, String sCaption, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
DrawRampResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawVertexCategoryShape ( DrawingObjects oDrawingObjects, VertexShape eVertexShape, Pen oPen, SolidBrush oBrush, Color oColor, System.Single fXShapeCenter, System.Single fYShapeCenter, System.Single fShapeHalfWidth ) : void
OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

AutoFillResultsLegendControl() public method

Initializes a new instance of the class.
public AutoFillResultsLegendControl ( ) : System
return System

Clear() public method

public Clear ( ) : void
return void

DoubleToString() protected method

protected DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
dDouble Double
iDecimalPlaces System.Int32
return String

Draw() protected method

protected Draw ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
return System.Int32

DrawAutoFillWorkbookResults() protected method

protected DrawAutoFillWorkbookResults ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
return System.Int32

DrawAutoFilledAlphaResults() protected method

protected DrawAutoFilledAlphaResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Double dDestinationNumber1, Double dDestinationNumber2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
dDestinationNumber1 Double
dDestinationNumber2 Double
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
return void

DrawAutoFilledEdgeResults() protected method

protected DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
return System.Int32

DrawAutoFilledVertexResults() protected method

protected DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
return System.Int32

DrawColorBarResults() protected method

protected DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
oColor1 Color
oColor2 Color
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
return void

DrawColorBarResults() protected method

protected DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, String sSourceCalculationMinimum, String sSourceCalculationMaximum, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
sSourceCalculationMinimum String
sSourceCalculationMaximum String
oColor1 Color
oColor2 Color
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
return void

DrawColorCategoryResults() protected method

protected DrawColorCategoryResults ( DrawingObjects oDrawingObjects, ICollection oCategoryNames, GetShapeAndColorForCategory oShapeAndColorGetter, Rectangle oColumnRectangle, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oCategoryNames ICollection
oShapeAndColorGetter GetShapeAndColorForCategory
oColumnRectangle System.Drawing.Rectangle
iTop System.Int32
return void

DrawColorColumnResults() protected method

protected DrawColorColumnResults ( DrawingObjects oDrawingObjects, String sCaption, AutoFillColorColumnResults oColorResults, VertexShape eCategoryShape, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sCaption String
oColorResults AutoFillColorColumnResults
eCategoryShape VertexShape
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
return void

DrawExcelColumnNameAndCaption() protected method

protected DrawExcelColumnNameAndCaption ( DrawingObjects oDrawingObjects, String sColumnName, String sCaption, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sColumnName String
sCaption String
iLeft System.Int32
iRight System.Int32
iTop System.Int32
return void

DrawRampResults() protected method

protected DrawRampResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
return void

DrawVertexCategoryShape() protected method

protected DrawVertexCategoryShape ( DrawingObjects oDrawingObjects, VertexShape eVertexShape, Pen oPen, SolidBrush oBrush, Color oColor, System.Single fXShapeCenter, System.Single fYShapeCenter, System.Single fShapeHalfWidth ) : void
oDrawingObjects DrawingObjects
eVertexShape VertexShape
oPen System.Drawing.Pen
oBrush System.Drawing.SolidBrush
oColor Color
fXShapeCenter System.Single
fYShapeCenter System.Single
fShapeHalfWidth System.Single
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Update() public method

public Update ( AutoFillWorkbookResults autoFillWorkbookResults ) : void
autoFillWorkbookResults AutoFillWorkbookResults
return void

Property Details

m_iLastResizeWidth protected_oe property

protected Int32,System m_iLastResizeWidth
return System.Int32

m_oAutoFillWorkbookResults protected_oe property

protected AutoFillWorkbookResults,Smrf.NodeXL.ExcelTemplate m_oAutoFillWorkbookResults
return AutoFillWorkbookResults