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étodo | Descripció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ámetro | Tipo | Descripción |
|---|---|---|
| htmlColor | java.lang.String | Color HTML. |
Returns: Color - The color.
fromOle(int oleColor)
public static Color fromOle(int oleColor)
Obtiene el color del color OLE.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| oleColor | int | Color OLE. |
Returns: Color - The color.
fromWin32(int win32Color)
public static Color fromWin32(int win32Color)
Obtiene el color del color HTML.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| win32Color | int | Color Win32. |
Returns: Color - The color.
toHtml(Color c)
public static String toHtml(Color c)
Crea un color HTML a partir del color.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| c | Color | La 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ámetro | Tipo | Descripción |
|---|---|---|
| c | Color | El color. |
Returns: int - El color OLE.
toWin32(Color c)
public static int toWin32(Color c)
Traduce el color a color win32.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| c | Color | El color. |
Returns: int - El color win32.