java.lang.Object | ||
↳ | ConstraintLayout | |
↳ | com.pdftron.pdf.controls.AdvancedColorView |
A ConstraintLayout to show color picker board includes ColorHuePickerWheel
and ColorSatValuePickerBoard
.
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
|
Class constructor
Class constructor
Class constructor
This method invoked when there is color changed
view | invoked color picker view that made the color change |
---|---|
color | new color |
Gets color
This method invoked when ColorSatValuePickerBoard
changed color
hsv | hsv color |
---|
This method invoked when ColorHuePickerWheel
changed color hue value
newHue | new hue value |
---|
Sets color change listener. listener will be invoked when there is color change event
listener | color change listener |
---|
Initialize color
color | color |
---|