C# Class Microsoft.AzureCat.Samples.AlertClient.Shape

Exibir arquivo Open project: paolosalvatori/servicefabriceventhubdemo Class Usage Examples

Public Methods

Method Description
Draw ( Graphics g ) : void
RenderObject ( Graphics g ) : void
Tick ( ) : void

Protected Methods

Method Description
RestoreTransform ( Graphics g ) : void

Simply restores the original state of the Graphics object

SetupTransform ( Graphics g ) : void

Sets up the transform for each shape

As each shape is drawn the transform for that shape including rotation and location is made to a new Matrix object. This matrix is used to modify the graphics transform For each shape

Method Details

Draw() public method

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
return void

RenderObject() public method

public RenderObject ( Graphics g ) : void
g System.Drawing.Graphics
return void

RestoreTransform() protected method

Simply restores the original state of the Graphics object
protected RestoreTransform ( Graphics g ) : void
g System.Drawing.Graphics The Graphics object being drawn upon
return void

SetupTransform() protected method

Sets up the transform for each shape
As each shape is drawn the transform for that shape including rotation and location is made to a new Matrix object. This matrix is used to modify the graphics transform For each shape
protected SetupTransform ( Graphics g ) : void
g System.Drawing.Graphics The Graphics being drawn on
return void

Tick() public method

public Tick ( ) : void
return void