C# Class Paint.SpeedGauge

Speed gauge toolbox item
Inheritance: ToolBoxToolTouchBase, ISpeedGauge
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Public Methods

Method Description
Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

SpeedGauge ( IGraphicsDisplay graphicsDisplay, SpeedGaugeDefinition speedGaugeDefinition ) : System

Initializes a new instance of the Paint.SpeedGauge class.

Protected Methods

Method Description
HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

OnSpeedChanged ( EventArgs e ) : void

Raises the speed changed event.

Private Methods

Method Description
CreateGauge ( IGraphicsDisplay graphicsDisplay ) : void

Creates the gauge.

CreateGraphicsRectangles ( IGraphicsDisplay graphicsDisplay ) : void

Creates the rectangles for the background graphics/icons on the gauge

Method Details

Draw() public method

Draw this tool on to the image
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
return void

HandleTouch() protected method

Handles a particular touch by the user
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint Touch position.
return void

OnSpeedChanged() protected method

Raises the speed changed event.
protected OnSpeedChanged ( EventArgs e ) : void
e System.EventArgs /// Empty EventArgs. ///
return void

SpeedGauge() public method

Initializes a new instance of the Paint.SpeedGauge class.
public SpeedGauge ( IGraphicsDisplay graphicsDisplay, SpeedGaugeDefinition speedGaugeDefinition ) : System
graphicsDisplay IGraphicsDisplay raphics display.
speedGaugeDefinition SpeedGaugeDefinition Speed gauge definition.
return System