C# 클래스 PurplePen.Symbol

Represents a graphical symbol that can be drawn into a text box.
파일 보기 프로젝트 열기: petergolde/PurplePen 1 사용 예제들

공개 메소드들

메소드 설명
ContainsLanguage ( List texts, string language ) : bool
CreateSymdef ( Map map, SymColor color, float boxSize ) : PointSymDef
Draw ( Graphics g, Color color, RectangleF rect ) : void

Draw the given symbol to fill the rectange in that graphics.

GetBestSymbolText ( SymbolDB symbolDB, List texts, string language, bool plural, string gender, string nounCase ) : string
GetGender ( string language ) : string
GetModifiedCase ( SymbolDB symbolDB, List texts, string language ) : string
GetModifiedCase ( string language ) : string
GetName ( string language ) : string
GetPluralText ( string language, string gender = null, string nounCase = "" ) : string

Get the plural text for the symbol to use in text descriptions. If no plural text is defined, the singular text is used instead.

GetSymbolGender ( SymbolDB symbolDB, List texts, string language ) : string
GetText ( string language ) : string

Get the text for the symbol to use in text descriptions.

GetText ( string language, string gender, string nounCase = "" ) : string
ReadXml ( XmlInput xmlinput ) : void

Read the state of this symbol from XML. The xmlinput must be on a symbol node.

Symbol ( SymbolDB symbolDB ) : System

비공개 메소드들

메소드 설명
FindBestText ( SymbolDB symbolDB, List texts, string language, bool plural, string gender, string nounCase ) : SymbolText
ReadPoints ( XmlInput xmlinput ) : System.Drawing.PointF[]

Read points array from XML.

ToLineCap ( string s, XmlInput xmlinput ) : LineCap

Convert attribute of line cap from a string.

ToLineJoin ( string s, XmlInput xmlinput ) : LineJoin

Convert attribute of line join from a string.

메소드 상세

ContainsLanguage() 공개 정적인 메소드

public static ContainsLanguage ( List texts, string language ) : bool
texts List
language string
리턴 bool

CreateSymdef() 공개 메소드

public CreateSymdef ( Map map, SymColor color, float boxSize ) : PointSymDef
map Map
color SymColor
boxSize float
리턴 PointSymDef

Draw() 공개 메소드

Draw the given symbol to fill the rectange in that graphics.
public Draw ( Graphics g, Color color, RectangleF rect ) : void
g System.Drawing.Graphics Graphics to draw in.
color Color Color to use for drawing.
rect System.Drawing.RectangleF The rectange to fill.
리턴 void

GetBestSymbolText() 공개 정적인 메소드

public static GetBestSymbolText ( SymbolDB symbolDB, List texts, string language, bool plural, string gender, string nounCase ) : string
symbolDB SymbolDB
texts List
language string
plural bool
gender string
nounCase string
리턴 string

GetGender() 공개 메소드

public GetGender ( string language ) : string
language string
리턴 string

GetModifiedCase() 공개 정적인 메소드

public static GetModifiedCase ( SymbolDB symbolDB, List texts, string language ) : string
symbolDB SymbolDB
texts List
language string
리턴 string

GetModifiedCase() 공개 메소드

public GetModifiedCase ( string language ) : string
language string
리턴 string

GetName() 공개 메소드

public GetName ( string language ) : string
language string
리턴 string

GetPluralText() 공개 메소드

Get the plural text for the symbol to use in text descriptions. If no plural text is defined, the singular text is used instead.
public GetPluralText ( string language, string gender = null, string nounCase = "" ) : string
language string The language to use.
gender string
nounCase string
리턴 string

GetSymbolGender() 공개 정적인 메소드

public static GetSymbolGender ( SymbolDB symbolDB, List texts, string language ) : string
symbolDB SymbolDB
texts List
language string
리턴 string

GetText() 공개 메소드

Get the text for the symbol to use in text descriptions.
public GetText ( string language ) : string
language string The language to use.
리턴 string

GetText() 공개 메소드

public GetText ( string language, string gender, string nounCase = "" ) : string
language string
gender string
nounCase string
리턴 string

ReadXml() 공개 메소드

Read the state of this symbol from XML. The xmlinput must be on a symbol node.
public ReadXml ( XmlInput xmlinput ) : void
xmlinput XmlInput
리턴 void

Symbol() 공개 메소드

public Symbol ( SymbolDB symbolDB ) : System
symbolDB SymbolDB
리턴 System