C# Class Controls.Droid.CircleView

This is our class responsible for drawing our shapes
Inheritance: Android.Views.View
Show file Open project: xDelivered-Patrick/Xamarin.Forms.Essentials

Public Methods

Method Description
CircleView ( float density, Android.Content.Context context ) : System
CircleView ( float density, Android.Content.Context context, IAttributeSet attributes ) : System
CircleView ( float density, Android.Content.Context context, IAttributeSet attributes, int defStyle ) : System

Protected Methods

Method Description
HandleShapeDraw ( Android.Graphics.Canvas canvas ) : void
HandleStandardDraw ( Android.Graphics.Canvas canvas, Action drawShape, float lineWidth = null, bool drawFill = true ) : void

A simple method that handles drawing our shape with the various colours we need

OnDraw ( Android.Graphics.Canvas canvas ) : void

Private Methods

Method Description
Resize ( double input ) : float
Resize ( float input ) : float

Method Details

CircleView() public method

public CircleView ( float density, Android.Content.Context context ) : System
density float
context Android.Content.Context
return System

CircleView() public method

public CircleView ( float density, Android.Content.Context context, IAttributeSet attributes ) : System
density float
context Android.Content.Context
attributes IAttributeSet
return System

CircleView() public method

public CircleView ( float density, Android.Content.Context context, IAttributeSet attributes, int defStyle ) : System
density float
context Android.Content.Context
attributes IAttributeSet
defStyle int
return System

HandleShapeDraw() protected method

protected HandleShapeDraw ( Android.Graphics.Canvas canvas ) : void
canvas Android.Graphics.Canvas
return void

HandleStandardDraw() protected method

A simple method that handles drawing our shape with the various colours we need
protected HandleStandardDraw ( Android.Graphics.Canvas canvas, Action drawShape, float lineWidth = null, bool drawFill = true ) : void
canvas Android.Graphics.Canvas Canvas.
drawShape Action Draw shape.
lineWidth float Line width.
drawFill bool If set to true draw fill.
return void

OnDraw() protected method

protected OnDraw ( Android.Graphics.Canvas canvas ) : void
canvas Android.Graphics.Canvas
return void