C# Class MonoDroid.ColorPickers.ColorPickerView

Inheritance: Android.Views.View
Show file Open project: Cheesebaron/MonoDroid.ColorPickers Class Usage Examples

Public Methods

Method Description
ColorPickerView ( Android.Content.Context context ) : System
ColorPickerView ( Android.Content.Context context, IAttributeSet attrs ) : System
ColorPickerView ( Android.Content.Context context, IAttributeSet attrs, int defStyle ) : System
OnTouchEvent ( Android.Views.MotionEvent e ) : bool
OnTrackballEvent ( Android.Views.MotionEvent e ) : bool

Protected Methods

Method Description
ColorPickerView ( IntPtr javaReference, JniHandleOwnership transfer ) : System
Dispose ( bool disposing ) : void
OnDraw ( Android.Graphics.Canvas canvas ) : void
OnMeasure ( int widthMeasureSpec, int heightMeasureSpec ) : void
OnSizeChanged ( int w, int h, int oldw, int oldh ) : void

Private Methods

Method Description
AlphaToPoint ( int alpha ) : Point
BuildHueColorArray ( ) : int[]
CalculateRequiredOffset ( ) : float
ChooseHeight ( MeasureSpecMode mode, int size ) : int
ChooseWidth ( MeasureSpecMode mode, int size ) : int
DrawAlphaPanel ( Android.Graphics.Canvas canvas ) : void
DrawHuePanel ( Android.Graphics.Canvas canvas ) : void
DrawSatValPanel ( Android.Graphics.Canvas canvas ) : void
GetPrefferedHeight ( ) : int
GetPrefferedWidth ( ) : int
HueToPoint ( float hue ) : Point
Init ( ) : void
InitPaintTools ( ) : void
MoveTrackersIfNeeded ( Android.Views.MotionEvent e ) : bool
PointToAlpha ( int x ) : int
PointToHue ( float y ) : float
PointToSatVal ( float x, float y ) : float[]
SatValToPoint ( float sat, float val ) : Point
SetUpAlphaRect ( ) : void
SetUpHueRect ( ) : void
SetUpSatValRect ( ) : void

Method Details

ColorPickerView() public method

public ColorPickerView ( Android.Content.Context context ) : System
context Android.Content.Context
return System

ColorPickerView() public method

public ColorPickerView ( Android.Content.Context context, IAttributeSet attrs ) : System
context Android.Content.Context
attrs IAttributeSet
return System

ColorPickerView() public method

public ColorPickerView ( Android.Content.Context context, IAttributeSet attrs, int defStyle ) : System
context Android.Content.Context
attrs IAttributeSet
defStyle int
return System

ColorPickerView() protected method

protected ColorPickerView ( IntPtr javaReference, JniHandleOwnership transfer ) : System
javaReference System.IntPtr
transfer JniHandleOwnership
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnDraw() protected method

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

OnMeasure() protected method

protected OnMeasure ( int widthMeasureSpec, int heightMeasureSpec ) : void
widthMeasureSpec int
heightMeasureSpec int
return void

OnSizeChanged() protected method

protected OnSizeChanged ( int w, int h, int oldw, int oldh ) : void
w int
h int
oldw int
oldh int
return void

OnTouchEvent() public method

public OnTouchEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
return bool

OnTrackballEvent() public method

public OnTrackballEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
return bool