Package system.windows.media
Class Color
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.windows.media.Color
-
- All Implemented Interfaces:
IJCOBridgeReflected,IFormattable
public class Color extends ValueType implements IFormattable
The base .NET class managing System.Windows.Media.Color, PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Media.Colorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorAdd(Color color1, Color color2)static booleanAreClose(Color color1, Color color2)static Colorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoColor, a cast assert is made to check if types are compatible.voidClamp()booleanEquals(Color color)static booleanEquals(Color color1, Color color2)static ColorFromArgb(byte a, byte r, byte g, byte b)static ColorFromAValues(Single a, Single[] values, Uri profileUri)static ColorFromRgb(byte r, byte g, byte b)static ColorFromScRgb(Single a, Single r, Single g, Single b)static ColorFromValues(Single[] values, Uri profileUri)bytegetA()bytegetB()ColorContextgetColorContext()bytegetG()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeSingle[]GetNativeColorValues()bytegetR()SinglegetScA()SinglegetScB()SinglegetScG()SinglegetScR()static ColorMultiply(Color color, Single coefficient)voidsetA(byte A)voidsetB(byte B)voidsetG(byte G)voidsetJCOInstance(JCObject instance)voidsetR(byte R)voidsetScA(Single ScA)voidsetScB(Single ScB)voidsetScG(Single ScG)voidsetScR(Single ScR)static ColorSubtract(Color color1, Color color2)java.lang.StringToString(IFormatProvider provider)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IFormattable
ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Media.Color- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIFormattable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIFormattable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIFormattable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIFormattable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIFormattable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Color cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoColor, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Colorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
AreClose
public static boolean AreClose(Color color1, Color color2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionIndexOutOfRangeException
-
Equals
public static boolean Equals(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeException
-
Equals
public boolean Equals(Color color) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeException
-
GetNativeColorValues
public Single[] GetNativeColorValues() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, NullReferenceException, SecurityException, IOException, UnauthorizedAccessException, UnreachableException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionUnreachableExceptionUriFormatExceptionOutOfMemoryException
-
Add
public static Color Add(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, UnreachableException, UriFormatException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, InvalidCastException, AccessViolationException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionOutOfMemoryExceptionCultureNotFoundExceptionUnreachableExceptionUriFormatExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionAccessViolationException
-
FromArgb
public static Color FromArgb(byte a, byte r, byte g, byte b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromAValues
public 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, AccessViolationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionUnreachableExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionAccessViolationException
-
FromRgb
public static Color FromRgb(byte r, byte g, byte b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromScRgb
public static Color FromScRgb(Single a, Single r, Single g, Single b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromValues
public static Color FromValues(Single[] values, Uri profileUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, WebException, Win32Exception, CookieException, IOException, SecurityException, FileNotFoundException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, ObjectDisposedException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionSecurityExceptionFileNotFoundExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionObjectDisposedExceptionOutOfMemoryExceptionAccessViolationException
-
Multiply
public static Color Multiply(Color color, Single coefficient) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, OutOfMemoryException, UriFormatException, InvalidOperationException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionOutOfMemoryExceptionUriFormatExceptionInvalidOperationExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionAccessViolationException
-
Subtract
public static Color Subtract(Color color1, Color color2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, UnreachableException, UriFormatException, WebException, Win32Exception, CookieException, IOException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, InvalidCastException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionUnreachableExceptionUriFormatExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionAccessViolationException
-
Clamp
public void Clamp() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getA
public byte getA() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setA
public void setA(byte A) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getB
public byte getB() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setB
public void setB(byte B) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getG
public byte getG() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setG
public void setG(byte G) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getR
public byte getR() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setR
public void setR(byte R) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getScA
public Single getScA() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScA
public void setScA(Single ScA) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getScB
public Single getScB() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScB
public void setScB(Single ScB) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getScG
public Single getScG() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScG
public void setScG(Single ScG) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getScR
public Single getScR() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScR
public void setScR(Single ScR) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getColorContext
public ColorContext getColorContext() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-