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
ファイルを表示 Open project: soywiz/cspspemu

Private Properties

Property Type Description

Public Methods

Method 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

Protected Methods

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

Handle the GetEditRectangle request

Method Details

HandleGetEditRectangle() protected method

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
return System.Drawing.Rectangle

MultiImageRenderer() public method

Make a quiet rendererer
public MultiImageRenderer ( ) : System
return System

MultiImageRenderer() public method

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
return System

Render() public method

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