C# Class PurplePen.DescriptionRenderer

Renders a CourseView onto a Graphics.
Inheritance: IPrintableRectangle, ICloneable
Show file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
BoxBounds ( int firstLine, int lastLine, int startBox, int endBox ) : RectangleF
Clone ( ) : object
DescriptionRenderer ( SymbolDB symbolDB ) : System
HitTest ( PointF point ) : HitTestResult
LineBounds ( int firstLine, int lastLine ) : RectangleF
Measure ( ) : SizeF
RenderToGraphics ( Graphics g, RectangleF clipRect ) : void
RenderToMap ( Map map, SymColor color, PointF point, SymDef>.Dictionary dict ) : void

Private Methods

Method Description
ColumnAndRow ( int line, int &row, int &column ) : void
CreateObjects ( IRenderer renderer, float cellSize ) : void
DisposeObject ( object obj ) : void
DisposeObjects ( ) : void
IPrintableRectangle ( Graphics g, float x, float y, int startLine, int countLines ) : void
LineBounds ( int line, int &firstLine, int &lastLine ) : void
Render ( IRenderer renderer, RectangleF clipRect, int startLine, int countLines ) : void
RenderColumnFText ( IRenderer renderer, string s, float left, float top, float right, float bottom, RectangleF clipRect ) : void
RenderLine ( IRenderer renderer, DescriptionLine descriptionLine, DescriptionKind descriptionKind, bool lastLine, bool drawThickLine, bool noTopLine, RectangleF clipRect ) : void
RenderSingleLineText ( IRenderer renderer, int fontNumber, StringAlignment alignment, string s, float left, float top, float right, float bottom, RectangleF clipRect ) : void
RenderSymbol ( IRenderer renderer, Symbol symbol, float left, float top, float right, float bottom, RectangleF clipRect ) : void
RenderWrappedText ( IRenderer renderer, int fontIndex, StringAlignment alignment, string s, float left, float top, float right, float bottom, RectangleF clipRect ) : void
UpdateThickLineCounter ( DescriptionLine descriptionLine, DescriptionKind descriptionKind, int &thickLineCounter ) : void
WidthInCells ( ) : int

Method Details

BoxBounds() public method

public BoxBounds ( int firstLine, int lastLine, int startBox, int endBox ) : RectangleF
firstLine int
lastLine int
startBox int
endBox int
return System.Drawing.RectangleF

Clone() public method

public Clone ( ) : object
return object

DescriptionRenderer() public method

public DescriptionRenderer ( SymbolDB symbolDB ) : System
symbolDB SymbolDB
return System

HitTest() public method

public HitTest ( PointF point ) : HitTestResult
point System.Drawing.PointF
return HitTestResult

LineBounds() public method

public LineBounds ( int firstLine, int lastLine ) : RectangleF
firstLine int
lastLine int
return System.Drawing.RectangleF

Measure() public method

public Measure ( ) : SizeF
return System.Drawing.SizeF

RenderToGraphics() public method

public RenderToGraphics ( Graphics g, RectangleF clipRect ) : void
g System.Drawing.Graphics
clipRect System.Drawing.RectangleF
return void

RenderToMap() public method

public RenderToMap ( Map map, SymColor color, PointF point, SymDef>.Dictionary dict ) : void
map Map
color SymColor
point System.Drawing.PointF
dict SymDef>.Dictionary
return void