public class

ColorHuePickerWheel

extends View
java.lang.Object
   ↳ android.view.View
     ↳ com.pdftron.pdf.widget.ColorHuePickerWheel

Class Overview

A Color Wheel for picking hue value of the color.

Summary

Nested Classes
interface ColorHuePickerWheel.OnHueChangeListener Listening for hue changes  
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ColorHuePickerWheel(Context context, AttributeSet attrs, int defStyle)
ColorHuePickerWheel(Context context, AttributeSet attrs)
ColorHuePickerWheel(Context context)
Public Methods
boolean onTouchEvent(MotionEvent event)
Overload implementation of onTouchEvent(MotionEvent) If the touch point is inside color wheel, change the selected color hue value
void setColor(int color)
Set color to color wheel.
void setOnHueChangeListener(ColorHuePickerWheel.OnHueChangeListener listener)
Set hue change listener
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public ColorHuePickerWheel (Context context, AttributeSet attrs, int defStyle)

public ColorHuePickerWheel (Context context, AttributeSet attrs)

public ColorHuePickerWheel (Context context)

Public Methods

public boolean onTouchEvent (MotionEvent event)

Overload implementation of onTouchEvent(MotionEvent) If the touch point is inside color wheel, change the selected color hue value

Parameters
event motion event
Returns
  • true if changed color hue value

public void setColor (int color)

Set color to color wheel. The color wheel will update the hue value of the color.

Parameters
color color

public void setOnHueChangeListener (ColorHuePickerWheel.OnHueChangeListener listener)

Set hue change listener

Parameters
listener The listener