com.vaadin.ui
Interface AbstractColorPicker.Coordinates2Color

All Superinterfaces:
java.io.Serializable
Enclosing class:
AbstractColorPicker

public static interface AbstractColorPicker.Coordinates2Color
extends java.io.Serializable

Interface for converting 2d-coordinates to a Color


Method Summary
 int[] calculate(com.vaadin.shared.ui.colorpicker.Color c)
          Calculate coordinates from color
 com.vaadin.shared.ui.colorpicker.Color calculate(int x, int y)
          Calculate color from coordinates
 

Method Detail

calculate

com.vaadin.shared.ui.colorpicker.Color calculate(int x,
                                                 int y)
Calculate color from coordinates

Parameters:
x - the x-coordinate
y - the y-coordinate
Returns:
the color

calculate

int[] calculate(com.vaadin.shared.ui.colorpicker.Color c)
Calculate coordinates from color

Parameters:
c - the c
Returns:
the integer array with the coordinates


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.