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
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
m_iLastResizeWidth System.Int32
m_oAutoFillWorkbookResults AutoFillWorkbookResults

Méthodes publiques

Méthode Description
AssertValid ( ) : void
AutoFillResultsLegendControl ( ) : System

Initializes a new instance of the class.

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

Méthodes protégées

Méthode 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 méthode

public AssertValid ( ) : void
Résultat void

AutoFillResultsLegendControl() public méthode

Initializes a new instance of the class.
public AutoFillResultsLegendControl ( ) : System
Résultat System

Clear() public méthode

public Clear ( ) : void
Résultat void

DoubleToString() protected méthode

protected DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
dDouble Double
iDecimalPlaces System.Int32
Résultat String

Draw() protected méthode

protected Draw ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
Résultat System.Int32

DrawAutoFillWorkbookResults() protected méthode

protected DrawAutoFillWorkbookResults ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
Résultat System.Int32

DrawAutoFilledAlphaResults() protected méthode

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
Résultat void

DrawAutoFilledEdgeResults() protected méthode

protected DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
Résultat System.Int32

DrawAutoFilledVertexResults() protected méthode

protected DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
Résultat System.Int32

DrawColorBarResults() protected méthode

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
Résultat void

DrawColorBarResults() protected méthode

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
Résultat void

DrawColorCategoryResults() protected méthode

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
Résultat void

DrawColorColumnResults() protected méthode

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
Résultat void

DrawExcelColumnNameAndCaption() protected méthode

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
Résultat void

DrawRampResults() protected méthode

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
Résultat void

DrawVertexCategoryShape() protected méthode

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
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

Update() public méthode

public Update ( AutoFillWorkbookResults autoFillWorkbookResults ) : void
autoFillWorkbookResults AutoFillWorkbookResults
Résultat void

Property Details

m_iLastResizeWidth protected_oe property

protected Int32,System m_iLastResizeWidth
Résultat System.Int32

m_oAutoFillWorkbookResults protected_oe property

protected AutoFillWorkbookResults,Smrf.NodeXL.ExcelTemplate m_oAutoFillWorkbookResults
Résultat AutoFillWorkbookResults