C# Class BrightIdeasSoftware.MultiImageRenderer

A MultiImageRenderer draws the same image a number of times based on our data value

The stars in the Rating column of iTunes is a good example of this type of renderer.

Inheritance: BaseRenderer
Afficher le fichier Open project: soywiz/cspspemu

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
MultiImageRenderer ( ) : System

Make a quiet rendererer

MultiImageRenderer ( Object imageSelector, int maxImages, int minValue, int maxValue ) : System

Make an image renderer that will draw the indicated image, at most maxImages times.

Render ( Graphics g, Rectangle r ) : void

Draw our data value

Méthodes protégées

Méthode Description
HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle

Handle the GetEditRectangle request

Method Details

HandleGetEditRectangle() protected méthode

Handle the GetEditRectangle request
protected HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle
g System.Drawing.Graphics
cellBounds System.Drawing.Rectangle
item BrightIdeasSoftware.OLVListItem
subItemIndex int
preferredSize System.Drawing.Size
Résultat System.Drawing.Rectangle

MultiImageRenderer() public méthode

Make a quiet rendererer
public MultiImageRenderer ( ) : System
Résultat System

MultiImageRenderer() public méthode

Make an image renderer that will draw the indicated image, at most maxImages times.
public MultiImageRenderer ( Object imageSelector, int maxImages, int minValue, int maxValue ) : System
imageSelector Object
maxImages int
minValue int
maxValue int
Résultat System

Render() public méthode

Draw our data value
public Render ( Graphics g, Rectangle r ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
Résultat void