ColorTranslator

Inheritance: java.lang.Object

public final class ColorTranslator

Traduce colores hacia y desde estructuras GDI+ Color. Esta clase no puede heredarse.

Métodos

MétodoDescripción
fromHtml(String htmlColor)Obtiene el color del color HTML.
fromOle(int oleColor)Obtiene el color del color OLE.
fromWin32(int win32Color)Obtiene el color del color HTML.
toHtml(Color c)Crea un color HTML a partir del color.
toOle(Color c)Traduce el color OLE a color.
toWin32(Color c)Traduce el color a color win32.

fromHtml(String htmlColor)

public static Color fromHtml(String htmlColor)

Obtiene el color del color HTML.

Parameters:

ParámetroTipoDescripción
htmlColorjava.lang.StringColor HTML.

Returns: Color - The color.

fromOle(int oleColor)

public static Color fromOle(int oleColor)

Obtiene el color del color OLE.

Parameters:

ParámetroTipoDescripción
oleColorintColor OLE.

Returns: Color - The color.

fromWin32(int win32Color)

public static Color fromWin32(int win32Color)

Obtiene el color del color HTML.

Parameters:

ParámetroTipoDescripción
win32ColorintColor Win32.

Returns: Color - The color.

toHtml(Color c)

public static String toHtml(Color c)

Crea un color HTML a partir del color.

Parameters:

ParámetroTipoDescripción
cColorLa clase de color.

Returns: java.lang.String - El color de cadena html.

toOle(Color c)

public static int toOle(Color c)

Traduce el color OLE a color.

Parameters:

ParámetroTipoDescripción
cColorEl color.

Returns: int - El color OLE.

toWin32(Color c)

public static int toWin32(Color c)

Traduce el color a color win32.

Parameters:

ParámetroTipoDescripción
cColorEl color.

Returns: int - El color win32.