public class

ColorSatValuePickerBoard

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

Class Overview

A picker board for picking color HSV with a given Hue value.

Summary

Nested Classes
interface ColorSatValuePickerBoard.OnHSVChangeListener Listener interface for color HSV value changes event  
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ColorSatValuePickerBoard(Context context)
ColorSatValuePickerBoard(Context context, AttributeSet attrs)
ColorSatValuePickerBoard(Context context, AttributeSet attrs, int defStyle)
Public Methods
boolean onTouchEvent(MotionEvent event)
If the touching point is inside the color picker board, it updates the color SV value.
void setColor(int color)
Sets color.
void setHue(float hue)
Sets the hue value of the color.
void setOnSaturationValueChangelistener(ColorSatValuePickerBoard.OnHSVChangeListener listener)
Set color SV value changes 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 ColorSatValuePickerBoard (Context context)

public ColorSatValuePickerBoard (Context context, AttributeSet attrs)

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

Public Methods

public boolean onTouchEvent (MotionEvent event)

If the touching point is inside the color picker board, it updates the color SV value.

Parameters
event motion event
Returns
  • true if the touching point is inside the color picker board

public void setColor (int color)

Sets color. It will update the color picker board based on the hue value.

Parameters
color The color

public void setHue (float hue)

Sets the hue value of the color. It will update the color picker board based on the hue value.

Parameters
hue Color hue value

public void setOnSaturationValueChangelistener (ColorSatValuePickerBoard.OnHSVChangeListener listener)

Set color SV value changes listener

Parameters
listener The listener