ColorTranslator

Inheritance: java.lang.Object

public final class ColorTranslator

Translates colors to and from GDI+ Color structures. This class cannot be inherited.

Methods

MethodDescription
equals(Object arg0)
fromHtml(String htmlColor)Takes color from the HTML color.
fromOle(int oleColor)Takes color from the OLE color.
fromWin32(int win32Color)Takes color from the HTML color.
getClass()
hashCode()
notify()
notifyAll()
toHtml(Color c)Creates HTML color from the color.
toOle(Color c)Translates OLE color to color.
toString()
toWin32(Color c)Translates the color to win32 color.
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fromHtml(String htmlColor)

public static Color fromHtml(String htmlColor)

Takes color from the HTML color.

Parameters:

ParameterTypeDescription
htmlColorjava.lang.StringHTML color.

Returns: Color - The color.

fromOle(int oleColor)

public static Color fromOle(int oleColor)

Takes color from the OLE color.

Parameters:

ParameterTypeDescription
oleColorintOLE color.

Returns: Color - The color.

fromWin32(int win32Color)

public static Color fromWin32(int win32Color)

Takes color from the HTML color.

Parameters:

ParameterTypeDescription
win32ColorintWin32 color.

Returns: Color - The color.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toHtml(Color c)

public static String toHtml(Color c)

Creates HTML color from the color.

Parameters:

ParameterTypeDescription
cColorThe color class.

Returns: java.lang.String - The html string color.

toOle(Color c)

public static int toOle(Color c)

Translates OLE color to color.

Parameters:

ParameterTypeDescription
cColorThe color.

Returns: int - The OLE color.

toString()

public String toString()

Returns: java.lang.String

toWin32(Color c)

public static int toWin32(Color c)

Translates the color to win32 color.

Parameters:

ParameterTypeDescription
cColorThe color.

Returns: int - The win32 color.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int