C# Class BrightIdeasSoftware.BarRenderer

Render our Aspect as a progress bar
Inheritance: BaseRenderer
显示文件 Open project: soywiz/cspspemu

Private Properties

Property Type Description

Public Methods

Method Description
BarRenderer ( ) : System

Make a BarRenderer

BarRenderer ( Pen pen, Brush brush ) : System

Make a BarRenderer using a custom bar scheme

BarRenderer ( Pen pen, Color start, Color end ) : System

Make a BarRenderer that uses a horizontal gradient

BarRenderer ( int minimum, int maximum ) : System

Make a BarRenderer for the given range of data values

BarRenderer ( int minimum, int maximum, Pen pen, Brush brush ) : System

Make a BarRenderer using a custom bar scheme

BarRenderer ( int minimum, int maximum, Pen pen, Color start, Color end ) : System

Make a BarRenderer that uses a horizontal gradient

Render ( Graphics g, Rectangle r ) : void

Draw our aspect

SetGradient ( Color start, Color end ) : void

Draw this progress bar using a gradient

Protected Methods

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

Handle the GetEditRectangle request

Method Details

BarRenderer() public method

Make a BarRenderer
public BarRenderer ( ) : System
return System

BarRenderer() public method

Make a BarRenderer using a custom bar scheme
public BarRenderer ( Pen pen, Brush brush ) : System
pen System.Drawing.Pen
brush System.Drawing.Brush
return System

BarRenderer() public method

Make a BarRenderer that uses a horizontal gradient
public BarRenderer ( Pen pen, Color start, Color end ) : System
pen System.Drawing.Pen
start Color
end Color
return System

BarRenderer() public method

Make a BarRenderer for the given range of data values
public BarRenderer ( int minimum, int maximum ) : System
minimum int
maximum int
return System

BarRenderer() public method

Make a BarRenderer using a custom bar scheme
public BarRenderer ( int minimum, int maximum, Pen pen, Brush brush ) : System
minimum int
maximum int
pen System.Drawing.Pen
brush System.Drawing.Brush
return System

BarRenderer() public method

Make a BarRenderer that uses a horizontal gradient
public BarRenderer ( int minimum, int maximum, Pen pen, Color start, Color end ) : System
minimum int
maximum int
pen System.Drawing.Pen
start Color
end Color
return System

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

Render() public method

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

SetGradient() public method

Draw this progress bar using a gradient
public SetGradient ( Color start, Color end ) : void
start Color
end Color
return void