C# Class MapAround.UI.ImageLegend

Represents a legend which appears as a simple image.
Inheritance: LegendBase
Afficher le fichier Open project: gkrsu/maparound.core

Méthodes publiques

Méthode Description
DrawLegend ( ) : Bitmap

Generates a legend bitmap.

Méthodes protégées

Méthode Description
CheckCaption ( string caption ) : void

Checks a legend caption.

Implementations should throw an exception if a caption value is impossible.

CheckNewElement ( LegendElement element ) : void

Checks an element.

Private Methods

Méthode Description
checkElementHeight ( LegendElement element ) : bool
checkElementWidth ( LegendElement element ) : bool
drawElement ( Graphics g, LegendElement element, int currentHeight ) : int
getCaptionSize ( ) : SizeF
getLabelStrSize ( string label ) : SizeF

Method Details

CheckCaption() protected méthode

Checks a legend caption.

Implementations should throw an exception if a caption value is impossible.

protected CheckCaption ( string caption ) : void
caption string A caption value to check
Résultat void

CheckNewElement() protected méthode

Checks an element.
protected CheckNewElement ( LegendElement element ) : void
element LegendElement An element to check
Résultat void

DrawLegend() public méthode

Generates a legend bitmap.
public DrawLegend ( ) : Bitmap
Résultat System.Drawing.Bitmap