ColorTranslator
Inheritance: java.lang.Object
public final class ColorTranslator
يترجم الألوان إلى ومن هياكل لون GDI+. لا يمكن وراثة هذه الفئة.
الطرق
| طريقة | الوصف |
|---|---|
| fromHtml(String htmlColor) | يأخذ اللون من لون HTML. |
| fromOle(int oleColor) | يأخذ اللون من لون OLE. |
| fromWin32(int win32Color) | يأخذ اللون من لون HTML. |
| toHtml(Color c) | ينشئ لون HTML من اللون. |
| toOle(Color c) | يترجم لون OLE إلى اللون. |
| toWin32(Color c) | يترجم اللون إلى لون win32. |
fromHtml(String htmlColor)
public static Color fromHtml(String htmlColor)
يأخذ اللون من لون HTML.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| htmlColor | java.lang.String | لون HTML. |
Returns: Color - The color.
fromOle(int oleColor)
public static Color fromOle(int oleColor)
يأخذ اللون من لون OLE.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| oleColor | int | لون OLE. |
Returns: Color - The color.
fromWin32(int win32Color)
public static Color fromWin32(int win32Color)
يأخذ اللون من لون HTML.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| win32Color | int | لون Win32. |
Returns: Color - The color.
toHtml(Color c)
public static String toHtml(Color c)
ينشئ لون HTML من اللون.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| c | Color | فئة اللون. |
Returns: java.lang.String - لون سلسلة HTML.
toOle(Color c)
public static int toOle(Color c)
يترجم لون OLE إلى اللون.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| c | Color | اللون. |
Returns: int - لون OLE.
toWin32(Color c)
public static int toWin32(Color c)
يترجم اللون إلى لون win32.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| c | Color | اللون. |
Returns: int - لون win32.