C# Class Smrf.NodeXL.ExcelTemplate.LegendControlBase

Base class for several classes that display a graph legend.
Inheritance: System.Windows.Forms.Control
ファイルを表示 Open project: 2014-sed-team3/term-project

Public Methods

Method Description
DrawOnBitmap ( Int32 bitmapWidth ) : Bitmap
LegendControlBase ( ) : System

Initializes a new instance of the LegendControlBase class.

Protected Methods

Method 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

Method Description
AssertValid ( ) : void

Method Details

AddMarginsToColumnRectangle() protected method

protected AddMarginsToColumnRectangle ( Rectangle &oColumnRectangle ) : void
oColumnRectangle System.Drawing.Rectangle
return void

CalculateHeight() protected method

protected CalculateHeight ( ) : Int32
return System.Int32

ControlRectangleToTwoColumns() protected method

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

CreateClippedDrawingObjects() protected method

protected CreateClippedDrawingObjects ( ) : DrawingObjects
return DrawingObjects

CreateDrawingObjects() protected method

protected CreateDrawingObjects ( Graphics oGraphics, Rectangle oControlRectangle ) : DrawingObjects
oGraphics System.Drawing.Graphics
oControlRectangle System.Drawing.Rectangle
return DrawingObjects

Draw() protected abstract method

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

DrawColumnHeader() protected method

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
return void

DrawColumnSeparator() protected method

protected DrawColumnSeparator ( DrawingObjects oDrawingObjects, Rectangle oColumn2Rectangle ) : void
oDrawingObjects DrawingObjects
oColumn2Rectangle System.Drawing.Rectangle
return void

DrawExcelColumnName() protected method

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
return void

DrawHorizontalSeparator() protected method

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

DrawOnBitmap() public method

public DrawOnBitmap ( Int32 bitmapWidth ) : Bitmap
bitmapWidth System.Int32
return System.Drawing.Bitmap

DrawRangeText() protected method

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
return void

GetTwoColumnWidth() protected method

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

LegendControlBase() public method

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

MeasureTextWidth() protected method

protected MeasureTextWidth ( DrawingObjects oDrawingObjects, String sText ) : Int32
oDrawingObjects DrawingObjects
sText String
return System.Int32