public class

AdvancedColorView

extends ConstraintLayout
implements ColorHuePickerWheel.OnHueChangeListener ColorSatValuePickerBoard.OnHSVChangeListener
java.lang.Object
   ↳ ConstraintLayout
     ↳ com.pdftron.pdf.controls.AdvancedColorView

Class Overview

A ConstraintLayout to show color picker board includes ColorHuePickerWheel and ColorSatValuePickerBoard.

Summary

Public Constructors
AdvancedColorView(Context context)
Class constructor
AdvancedColorView(Context context, AttributeSet attrs)
Class constructor
AdvancedColorView(Context context, AttributeSet attrs, int defStyleAttr)
Class constructor
Public Methods
void OnColorChanged(View view, int color)
This method invoked when there is color changed
int getColor()
Gets color
void onHSVChanged(float[] hsv)
This method invoked when ColorSatValuePickerBoard changed color
void onHueChanged(float newHue)
This method invoked when ColorHuePickerWheel changed color hue value
void setIsDialogLayout(boolean isDialogLayout)
void setOnColorChangeListener(ColorPickerView.OnColorChangeListener listener)
Sets color change listener.
void setSelectedColor(int color)
Initialize color
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.controls.ColorPickerView.OnColorChangeListener
From interface com.pdftron.pdf.widget.ColorHuePickerWheel.OnHueChangeListener
From interface com.pdftron.pdf.widget.ColorSatValuePickerBoard.OnHSVChangeListener

Public Constructors

public AdvancedColorView (Context context)

Class constructor

public AdvancedColorView (Context context, AttributeSet attrs)

Class constructor

public AdvancedColorView (Context context, AttributeSet attrs, int defStyleAttr)

Class constructor

Public Methods

public void OnColorChanged (View view, int color)

This method invoked when there is color changed

Parameters
view invoked color picker view that made the color change
color new color

public int getColor ()

Gets color

Returns
  • color

public void onHSVChanged (float[] hsv)

This method invoked when ColorSatValuePickerBoard changed color

Parameters
hsv hsv color

public void onHueChanged (float newHue)

This method invoked when ColorHuePickerWheel changed color hue value

Parameters
newHue new hue value

public void setIsDialogLayout (boolean isDialogLayout)

public void setOnColorChangeListener (ColorPickerView.OnColorChangeListener listener)

Sets color change listener. listener will be invoked when there is color change event

Parameters
listener color change listener

public void setSelectedColor (int color)

Initialize color

Parameters
color color