C# Class Smrf.NodeXL.ExcelTemplate.LegendControlBase

Base class for several classes that display a graph legend.
Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: 2014-sed-team3/term-project

Méthodes publiques

Méthode Description
DrawOnBitmap ( Int32 bitmapWidth ) : Bitmap
LegendControlBase ( ) : System

Initializes a new instance of the LegendControlBase class.

Méthodes protégées

Méthode Description
AddMarginsToColumnRectangle ( Rectangle &oColumnRectangle ) : void
CalculateHeight ( ) : Int32
ControlRectangleToTwoColumns ( DrawingObjects oDrawingObjects, Rectangle &oColumn1Rectangle, Rectangle &oColumn2Rectangle ) : void
CreateClippedDrawingObjects ( ) : DrawingObjects
CreateDrawingObjects ( Graphics oGraphics, Rectangle oControlRectangle ) : DrawingObjects
Draw ( DrawingObjects oDrawingObjects ) : Int32
DrawColumnHeader ( DrawingObjects oDrawingObjects, String sHeaderText, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
DrawColumnSeparator ( DrawingObjects oDrawingObjects, Rectangle oColumn2Rectangle ) : void
DrawExcelColumnName ( DrawingObjects oDrawingObjects, String sColumnName, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
DrawHorizontalSeparator ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle, Int32 &iTop ) : void
DrawRangeText ( DrawingObjects oDrawingObjects, String sLeftText, String sRightText, Brush oBrush, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
GetTwoColumnWidth ( DrawingObjects oDrawingObjects ) : Int32
MeasureTextWidth ( DrawingObjects oDrawingObjects, String sText ) : Int32

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

AddMarginsToColumnRectangle() protected méthode

protected AddMarginsToColumnRectangle ( Rectangle &oColumnRectangle ) : void
oColumnRectangle System.Drawing.Rectangle
Résultat void

CalculateHeight() protected méthode

protected CalculateHeight ( ) : Int32
Résultat System.Int32

ControlRectangleToTwoColumns() protected méthode

protected ControlRectangleToTwoColumns ( DrawingObjects oDrawingObjects, Rectangle &oColumn1Rectangle, Rectangle &oColumn2Rectangle ) : void
oDrawingObjects DrawingObjects
oColumn1Rectangle System.Drawing.Rectangle
oColumn2Rectangle System.Drawing.Rectangle
Résultat void

CreateClippedDrawingObjects() protected méthode

protected CreateClippedDrawingObjects ( ) : DrawingObjects
Résultat DrawingObjects

CreateDrawingObjects() protected méthode

protected CreateDrawingObjects ( Graphics oGraphics, Rectangle oControlRectangle ) : DrawingObjects
oGraphics System.Drawing.Graphics
oControlRectangle System.Drawing.Rectangle
Résultat DrawingObjects

Draw() protected abstract méthode

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

DrawColumnHeader() protected méthode

protected DrawColumnHeader ( DrawingObjects oDrawingObjects, String sHeaderText, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sHeaderText String
iLeft System.Int32
iRight System.Int32
iTop System.Int32
Résultat void

DrawColumnSeparator() protected méthode

protected DrawColumnSeparator ( DrawingObjects oDrawingObjects, Rectangle oColumn2Rectangle ) : void
oDrawingObjects DrawingObjects
oColumn2Rectangle System.Drawing.Rectangle
Résultat void

DrawExcelColumnName() protected méthode

protected DrawExcelColumnName ( DrawingObjects oDrawingObjects, String sColumnName, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sColumnName String
iLeft System.Int32
iRight System.Int32
iTop System.Int32
Résultat void

DrawHorizontalSeparator() protected méthode

protected DrawHorizontalSeparator ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
iTop System.Int32
Résultat void

DrawOnBitmap() public méthode

public DrawOnBitmap ( Int32 bitmapWidth ) : Bitmap
bitmapWidth System.Int32
Résultat System.Drawing.Bitmap

DrawRangeText() protected méthode

protected DrawRangeText ( DrawingObjects oDrawingObjects, String sLeftText, String sRightText, Brush oBrush, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sLeftText String
sRightText String
oBrush System.Drawing.Brush
iLeft System.Int32
iRight System.Int32
iTop System.Int32
Résultat void

GetTwoColumnWidth() protected méthode

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

LegendControlBase() public méthode

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

MeasureTextWidth() protected méthode

protected MeasureTextWidth ( DrawingObjects oDrawingObjects, String sText ) : Int32
oDrawingObjects DrawingObjects
sText String
Résultat System.Int32