C# Class PurplePen.MapRenderer

Inheritance: IRenderer
Mostra file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
CreateFont ( string fontName, float emHeight, bool bold, bool italic, StringAlignment alignment ) : object
CreatePen ( float thickness, LineJoin lineJoin, LineCap lineCap ) : object
DrawLine ( object pen, float x1, float y1, float x2, float y2 ) : void
DrawSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
DrawSymbol ( Symbol symbol, RectangleF rect ) : void
DrawWrappedText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
MapRenderer ( Map map, SymColor color, SymDef>.Dictionary dict ) : System
MeasureSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : float
WrappedTextFits ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : bool

Private Methods

Method Description
GetOcadId ( ) : string

Method Details

CreateFont() public method

public CreateFont ( string fontName, float emHeight, bool bold, bool italic, StringAlignment alignment ) : object
fontName string
emHeight float
bold bool
italic bool
alignment StringAlignment
return object

CreatePen() public method

public CreatePen ( float thickness, LineJoin lineJoin, LineCap lineCap ) : object
thickness float
lineJoin LineJoin
lineCap LineCap
return object

DrawLine() public method

public DrawLine ( object pen, float x1, float y1, float x2, float y2 ) : void
pen object
x1 float
y1 float
x2 float
y2 float
return void

DrawSingleLineText() public method

public DrawSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
return void

DrawSymbol() public method

public DrawSymbol ( Symbol symbol, RectangleF rect ) : void
symbol Symbol
rect System.Drawing.RectangleF
return void

DrawWrappedText() public method

public DrawWrappedText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
return void

MapRenderer() public method

public MapRenderer ( Map map, SymColor color, SymDef>.Dictionary dict ) : System
map Map
color SymColor
dict SymDef>.Dictionary
return System

MeasureSingleLineText() public method

public MeasureSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : float
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
return float

WrappedTextFits() public method

public WrappedTextFits ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : bool
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
return bool