Package com.vaadin.ui
Interface AbstractColorPicker.Coordinates2Color
-
- All Superinterfaces:
java.io.Serializable
- Enclosing class:
- AbstractColorPicker
public static interface AbstractColorPicker.Coordinates2Color extends java.io.SerializableInterface for converting 2d-coordinates to a Color.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.shared.ui.colorpicker.Colorcalculate(int x, int y)Calculates a color from coordinates.int[]calculate(com.vaadin.shared.ui.colorpicker.Color c)Calculates coordinates from a color.
-
-
-
Method Detail
-
calculate
com.vaadin.shared.ui.colorpicker.Color calculate(int x, int y)Calculates a color from coordinates.- Parameters:
x- the x-coordinatey- the y-coordinate- Returns:
- the color
-
calculate
int[] calculate(com.vaadin.shared.ui.colorpicker.Color c)
Calculates coordinates from a color.- Parameters:
c- the c- Returns:
- the integer array with the coordinates
-
-