public class Color extends ValueType implements IFormattable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.Color
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Media.Color
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Color() |
Color(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Color |
Add(Color color1,
Color color2) |
static boolean |
AreClose(Color color1,
Color color2) |
static Color |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Color, a cast assert is made to check if types are compatible. |
void |
Clamp() |
boolean |
Equals(Color color) |
static boolean |
Equals(Color color1,
Color color2) |
static Color |
FromArgb(byte a,
byte r,
byte g,
byte b) |
static Color |
FromAValues(Single a,
Single[] values,
Uri profileUri) |
static Color |
FromRgb(byte r,
byte g,
byte b) |
static Color |
FromScRgb(Single a,
Single r,
Single g,
Single b) |
static Color |
FromValues(Single[] values,
Uri profileUri) |
byte |
getA() |
byte |
getB() |
ColorContext |
getColorContext() |
byte |
getG() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
Single[] |
GetNativeColorValues() |
byte |
getR() |
Single |
getScA() |
Single |
getScB() |
Single |
getScG() |
Single |
getScR() |
static Color |
Multiply(Color color,
Single coefficient) |
void |
setA(byte A) |
void |
setB(byte B) |
void |
setG(byte G) |
void |
setJCOInstance(JCObject instance) |
void |
setR(byte R) |
void |
setScA(Single ScA) |
void |
setScB(Single ScB) |
void |
setScG(Single ScG) |
void |
setScR(Single ScR) |
static Color |
Subtract(Color color1,
Color color2) |
java.lang.String |
ToString(IFormatProvider provider) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIFormattable, ToStringpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Color()
throws java.lang.Throwable
java.lang.Throwablepublic Color(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Color Add(Color color1, Color color2) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException, ArgumentNullException, OutOfMemoryException, CultureNotFoundException, UnreachableException, UriFormatException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionArgumentNullExceptionOutOfMemoryExceptionCultureNotFoundExceptionUnreachableExceptionUriFormatExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic static boolean AreClose(Color color1, Color color2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Color cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Color, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedColor instancejava.lang.Throwable - in case of error during cast operationpublic void Clamp()
throws java.lang.Throwable
java.lang.Throwablepublic boolean Equals(Color color) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Equals(Color color1, Color color2) throws java.lang.Throwable
java.lang.Throwablepublic static Color FromArgb(byte a, byte r, byte g, byte b) throws java.lang.Throwable
java.lang.Throwablepublic static Color FromAValues(Single a, Single[] values, Uri profileUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, UnreachableException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic static Color FromRgb(byte r, byte g, byte b) throws java.lang.Throwable
java.lang.Throwablepublic static Color FromScRgb(Single a, Single r, Single g, Single b) throws java.lang.Throwable
java.lang.Throwablepublic static Color FromValues(Single[] values, Uri profileUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, WebException, Win32Exception, PlatformNotSupportedException, CookieException, IOException, SecurityException, FileNotFoundException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, ObjectDisposedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotSupportedExceptionWebExceptionWin32ExceptionPlatformNotSupportedExceptionCookieExceptionIOExceptionSecurityExceptionFileNotFoundExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionObjectDisposedExceptionpublic byte getA()
throws java.lang.Throwable
java.lang.Throwablepublic byte getB()
throws java.lang.Throwable
java.lang.Throwablepublic ColorContext getColorContext() throws java.lang.Throwable
java.lang.Throwablepublic byte getG()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IFormattablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IFormattablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IFormattablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IFormattablegetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IFormattablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic Single[] GetNativeColorValues() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException
public byte getR()
throws java.lang.Throwable
java.lang.Throwablepublic Single getScA() throws java.lang.Throwable
java.lang.Throwablepublic Single getScB() throws java.lang.Throwable
java.lang.Throwablepublic Single getScG() throws java.lang.Throwable
java.lang.Throwablepublic Single getScR() throws java.lang.Throwable
java.lang.Throwablepublic static Color Multiply(Color color, Single coefficient) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, InvalidOperationException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, IndexOutOfRangeException, ArrayTypeMismatchException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionInvalidOperationExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionFileNotFoundExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionpublic void setA(byte A)
throws java.lang.Throwable
java.lang.Throwablepublic void setB(byte B)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setG(byte G)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic void setR(byte R)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setScA(Single ScA) throws java.lang.Throwable
java.lang.Throwablepublic void setScB(Single ScB) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setScG(Single ScG) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setScR(Single ScR) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static Color Subtract(Color color1, Color color2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, UnreachableException, UriFormatException, WebException, Win32Exception, CookieException, IOException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionUnreachableExceptionUriFormatExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, SecurityException, IOException, UnauthorizedAccessException, UnreachableException, UriFormatException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionUnreachableExceptionUriFormatExceptionOutOfMemoryException