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