ColorTranslator
Inheritance: java.lang.Object
public final class ColorTranslator
Renkleri GDI+ Color yapılarıyla ileri ve geri çevirir. Bu sınıf miras alınamaz.
Yöntemler
| Yöntem | Açıklama |
|---|---|
| fromHtml(String htmlColor) | Rengi HTML renginden alır. |
| fromOle(int oleColor) | Rengi OLE renginden alır. |
| fromWin32(int win32Color) | Rengi HTML renginden alır. |
| toHtml(Color c) | Renkten HTML rengi oluşturur. |
| toOle(Color c) | OLE rengini renge çevirir. |
| toWin32(Color c) | Rengi win32 rengine çevirir. |
fromHtml(String htmlColor)
public static Color fromHtml(String htmlColor)
Rengi HTML renginden alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| htmlColor | java.lang.String | HTML rengi. |
Returns: Color - The color.
fromOle(int oleColor)
public static Color fromOle(int oleColor)
Rengi OLE renginden alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| oleColor | int | OLE rengi. |
Returns: Color - The color.
fromWin32(int win32Color)
public static Color fromWin32(int win32Color)
Rengi HTML renginden alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| win32Color | int | Win32 rengi. |
Returns: Color - The color.
toHtml(Color c)
public static String toHtml(Color c)
Renkten HTML rengi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| c | Color | Renk sınıfı. |
Returns: java.lang.String - HTML dize rengi.
toOle(Color c)
public static int toOle(Color c)
OLE rengini renge çevirir.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| c | Color | Renk. |
Returns: int - OLE rengi.
toWin32(Color c)
public static int toWin32(Color c)
Rengi win32 rengine çevirir.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| c | Color | Renk. |
Returns: int - win32 rengi.